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 Mar 4, 2024
1 parent b92caba commit 3fdc876
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 3fdc876

Please sign in to comment.