Skip to content

Commit dadadac

Browse files
authored
Merge pull request #744 from adamralph/trailing-commas
add trailing commas
2 parents 8484e63 + 39f7b97 commit dadadac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SimpleExec/Command.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private static string Resolve(string name)
428428

429429
var searchFileNames = string.IsNullOrEmpty(extension)
430430
? windowsExecutableExtensions.Select(ex => Path.ChangeExtension(name, ex)).ToList()
431-
: [name];
431+
: [name,];
432432

433433
var path = GetSearchDirectories().SelectMany(_ => searchFileNames, Path.Combine)
434434
.FirstOrDefault(File.Exists);

SimpleExecTester/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static int Main(string[] args)
99
if (args.Contains("unicode"))
1010
{
1111
Console.OutputEncoding = Encoding.Unicode;
12-
args = [.. args, "Pi (\u03a0)"];
12+
args = [.. args, "Pi (\u03a0)",];
1313
}
1414

1515
Console.Out.WriteLine($"Arg count: {args.Length}");

0 commit comments

Comments
 (0)