Skip to content

Commit

Permalink
fix: address CS8602 and CS1998 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChecksumDev committed Jul 16, 2024
1 parent ed1ef4e commit 99b27bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MBSS/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ public static async Task Main(string[] args)

if (!await PerformPreflightChecks(client)) return;

var versions = JsonConvert.DeserializeObject<List<BeatSaberVersion>>(await File.ReadAllTextAsync(VersionsFile));
var versionsJson = await File.ReadAllTextAsync(VersionsFile);
var versions = JsonConvert.DeserializeObject<List<BeatSaberVersion>>(versionsJson);
if (versions == null)
{
AnsiConsole.MarkupLine("[red]Failed to parse versions.json![/]");
return;
}

foreach (var version in versions)
{
Expand Down

0 comments on commit 99b27bc

Please sign in to comment.