Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed May 4, 2024
1 parent b6138c6 commit 59b72b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShockOsc/Services/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ await JsonSerializer.DeserializeAsync<IEnumerable<GithubReleaseResponse>>(
listOfValid.Add((release, version));
}

var newestPreRelease = listOfValid.OrderByDescending(x => x.Item2).FirstOrDefault();
var newestPreRelease = listOfValid.OrderByDescending(x => x.Item2);

return newestPreRelease.Item1;
return newestPreRelease.FirstOrDefault().Item1;
}

private async Task<GithubReleaseResponse?> GetLatestRelease()
Expand Down

0 comments on commit 59b72b4

Please sign in to comment.