Skip to content

Commit 677cecd

Browse files
committed
No need to check IncludeContributors to execute simple Linq query
1 parent 016f5dc commit 677cecd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public async Task<string> BuildReleaseNotesAsync(string user, string repository,
7575
issue.LinkedIssues = linkedIssues?.ToList().AsReadOnly() ?? Array.AsReadOnly(Array.Empty<Issue>());
7676
}
7777

78-
var contributors = _configuration.Create.IncludeContributors ? GetContributors(distinctValidIssues) : Enumerable.Empty<User>();
78+
var contributors = GetContributors(distinctValidIssues);
7979

8080
var milestoneQueryString = _vcsProvider.GetMilestoneQueryString();
8181

@@ -88,7 +88,7 @@ public async Task<string> BuildReleaseNotesAsync(string user, string repository,
8888
},
8989
Contributors = new
9090
{
91-
Count = contributors.Count(),
91+
Count = contributors.Count,
9292
Items = contributors,
9393
},
9494
Commits = new

0 commit comments

Comments
 (0)