Skip to content

Commit 946ebbf

Browse files
committed
Reduce number of statements on one line, makes it easier to read
1 parent fb9c26d commit 946ebbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitVersionCore/GitVersionContext.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
public class GitVersionContext
1111
{
1212
public GitVersionContext(IRepository repository, string targetBranch, Config configuration, bool onlyEvaluateTrackedBranches = true, string commitId = null)
13-
: this(repository, repository.Branches.SingleOrDefault(b => b.CanonicalName == targetBranch || b.FriendlyName == targetBranch) ?? repository.Head, configuration, onlyEvaluateTrackedBranches, commitId)
13+
: this(repository,
14+
repository.Branches.SingleOrDefault(b => b.CanonicalName == targetBranch || b.FriendlyName == targetBranch) ?? repository.Head,
15+
configuration, onlyEvaluateTrackedBranches, commitId)
1416
{
1517
}
1618

0 commit comments

Comments
 (0)