Skip to content

Commit 0ed4a77

Browse files
committed
equals is more readable
1 parent affb7fb commit 0ed4a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionCore/GitHubFlow/NextSemverCalculator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public SemanticVersion NextVersion()
5252
};
5353
}
5454

55-
if (string.Equals(context.CurrentCommit.Sha, lastRelease.Commit.Sha))
55+
if (context.CurrentCommit.Sha == lastRelease.Commit.Sha)
5656
{
5757
return lastRelease.SemVer;
5858
}

0 commit comments

Comments
 (0)