Skip to content

Commit 38d40f3

Browse files
arturcicHHobeck
authored andcommitted
fix warnings as build errors
1 parent e2cf954 commit 38d40f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/GitVersion.Core/VersionCalculation/VersionCalculators/VersionCalculatorBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ internal abstract class VersionCalculatorBase(ILog log, IRepositoryStore reposit
1414

1515
protected SemanticVersionBuildMetaData CreateVersionBuildMetaData(ICommit? baseVersionSource)
1616
{
17-
int commitsSinceTag = 0;
1817
var commitLogs = this.repositoryStore.GetCommitLog(baseVersionSource, Context.CurrentCommit);
1918

2019
var ignore = Context.Configuration.Ignore;
@@ -23,7 +22,7 @@ protected SemanticVersionBuildMetaData CreateVersionBuildMetaData(ICommit? baseV
2322
commitLogs = commitLogs
2423
.Where(c => ignore.Before is null || (c.When > ignore.Before && !ignore.Shas.Contains(c.Sha)));
2524
}
26-
commitsSinceTag = commitLogs.Count();
25+
var commitsSinceTag = commitLogs.Count();
2726

2827
this.log.Info($"{commitsSinceTag} commits found between {baseVersionSource} and {Context.CurrentCommit}");
2928

0 commit comments

Comments
 (0)