Skip to content

Commit 4882017

Browse files
Roei-Leviasbjornu
andauthored
refactor: apply suggestions from code review
Co-authored-by: Asbjørn Ulsberg <[email protected]>
1 parent d2db6ee commit 4882017

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/GitVersion.Core/Configuration/EffectiveConfiguration.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using GitVersion.Extensions;
2-
using GitVersion.Git;
32
using GitVersion.VersionCalculation;
43

54
namespace GitVersion.Configuration;

src/GitVersion.LibGit2Sharp/Git/GitRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace GitVersion.Git;
88
internal sealed partial class GitRepository
99
{
1010
private Lazy<IRepository>? repositoryLazy;
11-
private readonly static Dictionary<string, Patch> patchsCache = [];
11+
private readonly static Dictionary<string, Patch> patchCache = [];
1212

1313
private IRepository RepositoryInstance
1414
{
@@ -61,7 +61,7 @@ public void DiscoverRepository(string? gitDirectory)
6161
var innerCommit = RepositoryInstance.Commits.First(c => c.Sha == commit.Sha);
6262
var match = new Regex($"^({tagPrefix ?? ""}).*$", RegexOptions.Compiled);
6363

64-
if (!patchsCache.ContainsKey(commit.Sha))
64+
if (!this.patchsCache.ContainsKey(commit.Sha))
6565
{
6666
if (!RepositoryInstance.Tags.Any(t => t.Target.Sha == commit.Sha && match.IsMatch(t.FriendlyName)))
6767
{

0 commit comments

Comments
 (0)