Skip to content

Commit dba03c9

Browse files
committed
formatting
1 parent 9b894b3 commit dba03c9

File tree

1 file changed

+2
-5
lines changed
  • Plugins/Flow.Launcher.Plugin.Shell

1 file changed

+2
-5
lines changed

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
204204
info.FileName = "cmd.exe";
205205
info.Arguments = $"{(_settings.LeaveShellOpen ? "/k" : "/c")} {command}";
206206

207-
//// Use info.Arguments instead of info.ArgumentList to enable user better control over the argument they are writing.
207+
//// Use info.Arguments instead of info.ArgumentList to enable users better control over the arguments they are writing.
208208
//// Previous code using ArgumentList, commands needed to be seperated correctly:
209209
//// Incorrect:
210210
// info.ArgumentList.Add(_settings.LeaveShellOpen ? "/k" : "/c");
@@ -238,10 +238,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
238238

239239
case Shell.RunCommand:
240240
{
241-
var parts = command.Split(new[]
242-
{
243-
' '
244-
}, 2);
241+
var parts = command.Split(new[] { ' ' }, 2);
245242
if (parts.Length == 2)
246243
{
247244
var filename = parts[0];

0 commit comments

Comments
 (0)