Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
calebkiage committed Nov 3, 2023
1 parent 08cf7e9 commit f0a533f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static async Task<int> Main(string[] args)
// Replace `me ...` with `users ... --user-id me`
if (args[0] == "me")
{
var hasHelp = args.Any(static x => x == "--help" || x == "-h" || x == "/?");
var hasHelp = Array.Exists(args, static x => x == "--help" || x == "-h" || x == "/?");
var newArgs = hasHelp ? args : new string[args.Length + 2];
newArgs[0] = "users";
for (var i = 1; i < args.Length; i++)
Expand Down

0 comments on commit f0a533f

Please sign in to comment.