more fixes for getting styleCop up, this will need one more push to get another 15 that will require renaming of vars (#5875)

This commit is contained in:
Clint Rutkas
2020-08-11 13:40:26 -07:00
committed by GitHub
parent 90502f7553
commit 2c49df4be3
24 changed files with 255 additions and 181 deletions

View File

@@ -73,11 +73,8 @@ namespace Wox.Infrastructure
public static string Formatted<T>(this T t)
{
var formatted = JsonConvert.SerializeObject(
t,
Formatting.Indented,
new StringEnumConverter()
);
var formatted = JsonConvert.SerializeObject(t, Formatting.Indented, new StringEnumConverter());
return formatted;
}
@@ -89,7 +86,7 @@ namespace Wox.Infrastructure
FileName = path,
WorkingDirectory = Path.GetDirectoryName(path),
Verb = "runas",
UseShellExecute = true
UseShellExecute = true,
};
try
@@ -107,7 +104,7 @@ namespace Wox.Infrastructure
var processStartInfo = new ProcessStartInfo
{
WorkingDirectory = path,
FileName = "cmd.exe"
FileName = "cmd.exe",
};
return Process.Start(processStartInfo);