Skip to content

Commit

Permalink
Update src/Neo.CLI/CLI/MainService.Plugins.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored May 14, 2024
1 parent dc8d25c commit 0e97b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neo.CLI/CLI/MainService.Plugins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static async Task<Stream> DownloadPluginAsync(string pluginName, Version
{
// If the corresponding version of the plugin is not found, get the latest version
jsonRelease = json.AsArray()
.OrderByDescending(s => Version.Parse(s["tag_name"]!.GetValue<string>().TrimStart('v')))
.OrderByDescending(s => Version.Parse(s["tag_name"]!.GetValue<string>()?.TrimStart('v')))

Check warning on line 97 in src/Neo.CLI/CLI/MainService.Plugins.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Dereference of a possibly null reference.

Check warning on line 97 in src/Neo.CLI/CLI/MainService.Plugins.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Possible null reference argument for parameter 'input' in 'Version Version.Parse(string input)'.
.FirstOrDefault();

if (jsonRelease != null)
Expand Down

0 comments on commit 0e97b46

Please sign in to comment.