Skip to content

Commit

Permalink
Fix IsEmpty property for release notes that have empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrofigo authored and matkoch committed May 15, 2023
1 parent 2165a0c commit 3be206d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Nuke.Common/ChangeLog/ReleaseNotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using NuGet.Versioning;

Expand All @@ -15,7 +16,7 @@ public class ReleaseNotes
/// <summary>
/// Gets a value indicating whether this release notes section contains notes.
/// </summary>
public bool IsEmpty => Notes.Count == 0;
public bool IsEmpty => Notes.All(string.IsNullOrWhiteSpace);

/// <summary>
/// Gets a value indicating whether this release notes section is unreleased (vNext).
Expand Down

0 comments on commit 3be206d

Please sign in to comment.