Skip to content

Commit b79c9aa

Browse files
committed
Fewer statements per line
1 parent f7bcc26 commit b79c9aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitVersion.Core/Core/RepositoryStore.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ public IEnumerable<IBranch> GetReleaseBranches(IEnumerable<KeyValuePair<string,
155155
public IEnumerable<IBranch> ExcludingBranches(IEnumerable<IBranch> branchesToExclude) => this.repository.Branches.ExcludeBranches(branchesToExclude);
156156

157157
public IEnumerable<IBranch> GetBranchesContainingCommit(ICommit? commit, IEnumerable<IBranch>? branches = null, bool onlyTrackedBranches = false)
158-
=> new BranchesContainingCommitFinder(this.repository, this.log).GetBranchesContainingCommit(commit, branches, onlyTrackedBranches);
158+
{
159+
var branchesContainingCommitFinder = new BranchesContainingCommitFinder(this.repository, this.log);
160+
return branchesContainingCommitFinder.GetBranchesContainingCommit(commit, branches, onlyTrackedBranches);
161+
}
159162

160163
public IDictionary<string, List<IBranch>> GetMainlineBranches(ICommit commit, Config configuration, IEnumerable<KeyValuePair<string, BranchConfig>>? mainlineBranchConfigs)
161164
{

0 commit comments

Comments
 (0)