Skip to content

Commit

Permalink
Fix LatestVersion property
Browse files Browse the repository at this point in the history
Fix LatestVersion property
  • Loading branch information
sandrofigo committed Sep 5, 2023
1 parent 6262da1 commit aab0ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Nuke.Common/ChangeLog/ChangeLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ChangeLog
/// <summary>
/// The latest release notes section. Returns null if the changelog does not contain a release section.
/// </summary>
[CanBeNull] public NuGetVersion LatestVersion => ReleaseNotes.FirstOrDefault()?.Version;
[CanBeNull] public NuGetVersion LatestVersion => ReleaseNotes.LastOrDefault()?.Version;

/// <summary>
/// Initializes a new instance of the <see cref="ChangeLog"/> class.
Expand Down

0 comments on commit aab0ce6

Please sign in to comment.