Skip to content

Commit

Permalink
chore: Check skip for null
Browse files Browse the repository at this point in the history
  • Loading branch information
Takoooooo committed Dec 17, 2024
1 parent a9efe69 commit 6d898eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UnoCheck/CheckCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public override async Task<int> ExecuteAsync(CommandContext context, CheckSettin
settings.TargetPlatforms = ParseTfmsToTargetPlatforms(settings);
if (!string.IsNullOrEmpty(settings.Ide))
{
var currentSkips = settings.Skip.ToList();
var currentSkips = settings.Skip == null ? [] : settings.Skip.ToList();
switch (settings.Ide.ToLowerInvariant())
{
case "rider":
Expand Down
5 changes: 3 additions & 2 deletions UnoCheck/CheckSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Spectre.Console.Cli;
#nullable enable
using Spectre.Console.Cli;
using System.ComponentModel;

namespace DotNetCheck
Expand All @@ -15,7 +16,7 @@ public partial class CheckSettings : CommandSettings, IManifestChannelSettings
public bool NonInteractive { get; set; }

[CommandOption("-s|--skip <CHECKUP_ID>")]
public string[] Skip { get; set; }
public string[]? Skip { get; set; }

[CommandOption("--pre|--preview|-d|--dev")]
public bool Preview { get; set; }
Expand Down

0 comments on commit 6d898eb

Please sign in to comment.