Skip to content

Commit 6c0e49f

Browse files
author
roeil
committed
refactor: prefix local field access with 'this'
1 parent 0e5359e commit 6c0e49f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GitVersion.Core/VersionCalculation/VersionSearchStrategies/ConfiguredNextVersionVersionStrategy.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ public IEnumerable<BaseVersion> GetBaseVersions(EffectiveBranchConfiguration con
1818
{
1919
configuration.NotNull();
2020

21-
if (!Context.Configuration.VersionStrategy.HasFlag(VersionStrategies.ConfiguredNextVersion))
21+
if (!this.Context.Configuration.VersionStrategy.HasFlag(VersionStrategies.ConfiguredNextVersion))
2222
yield break;
2323

24-
var nextVersion = Context.Configuration.NextVersion;
24+
var nextVersion = this.Context.Configuration.NextVersion;
2525
if (!nextVersion.IsNullOrEmpty())
2626
{
2727
var semanticVersion = SemanticVersion.Parse(
28-
nextVersion, Context.Configuration.TagPrefixPattern, Context.Configuration.SemanticVersionFormat
28+
nextVersion, this.Context.Configuration.TagPrefixPattern, this.Context.Configuration.SemanticVersionFormat
2929
);
30-
var label = configuration.Value.GetBranchSpecificLabel(Context.CurrentBranch.Name, null);
30+
var label = configuration.Value.GetBranchSpecificLabel(this.Context.CurrentBranch.Name, null);
3131

3232
if (semanticVersion.IsMatchForBranchSpecificLabel(label))
3333
{

0 commit comments

Comments
 (0)