Skip to content

Commit

Permalink
Ignore case when specifying ship aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
smallketchup82 committed Sep 5, 2024
1 parent 46a3ac0 commit 1f4481c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ketchupbot-updater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ private static async Task<int> Main(string[] args)
#region Ship Option Handler

string[] shipsOptionValue = handler.ParseResult.GetValueForOption(shipsOption)!;
if (shipsOptionValue.First() != "none" && shipScheduleOptionValue == null)
if (!shipsOptionValue.First().Equals("none", StringComparison.CurrentCultureIgnoreCase) && shipScheduleOptionValue == null)
{
if (shipsOptionValue.First() == "all")
if (shipsOptionValue.First().Equals("all", StringComparison.CurrentCultureIgnoreCase))
{
await app.Services.GetRequiredService<ShipUpdater>().UpdateAllShips();
}
Expand Down

0 comments on commit 1f4481c

Please sign in to comment.