mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user