Skip to content

Commit

Permalink
Merge pull request #95 from microsoft/jschick/bugfix/prerelease_not_l…
Browse files Browse the repository at this point in the history
…atest

Fixed bug with latest release if pre-release is enabled
  • Loading branch information
bill-long authored May 22, 2023
2 parents f6162f8 + 360c271 commit 34c8b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventLogExpert/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ internal static async Task<bool> CheckForUpdates(bool isPrerelease)
var releases = content.OrderByDescending(x => x.ReleaseDate).ToArray();

GitReleaseModel? latest = isPrerelease ?
releases.FirstOrDefault(x => x.IsPrerelease) :
releases.FirstOrDefault();
releases.FirstOrDefault() :
releases.FirstOrDefault(x => !x.IsPrerelease);

if (latest is null) { return false; }

Expand Down

0 comments on commit 34c8b44

Please sign in to comment.