diff --git a/src/GitVersion.Core.Tests/IntegrationTests/OtherScenarios.cs b/src/GitVersion.Core.Tests/IntegrationTests/OtherScenarios.cs index ee208dd8ca..b4b26d876d 100644 --- a/src/GitVersion.Core.Tests/IntegrationTests/OtherScenarios.cs +++ b/src/GitVersion.Core.Tests/IntegrationTests/OtherScenarios.cs @@ -136,11 +136,11 @@ public void EnsureTrackMergeTargetStrategyWhichWillLookForTaggedMergecommits(boo { // * 9daa6ea 53 minutes ago (HEAD -> develop) // | * 85536f2 55 minutes ago (tag: 1.1.0, main) - // | |\ - // | |/ - // |/| + // | |\ + // | |/ + // |/| // * | 4a5ef1a 56 minutes ago - // |/ + // |/ // * c7f68af 58 minutes ago (tag: 1.0.0) var configuration = GitFlowConfigurationBuilder.New @@ -1046,7 +1046,7 @@ public void EnsureThePreReleaseTagIsCorrectlyGeneratedWhenPreReleaseLabelIsEmpty using var fixture = new EmptyRepositoryFixture("main"); fixture.Repository.MakeCommits(5); - var variables = fixture.GetVersion(configuration); + var _ = fixture.GetVersion(configuration); fixture.AssertFullSemver("0.0.1-5", configuration); } diff --git a/src/GitVersion.Core/Extensions/StringExtensions.cs b/src/GitVersion.Core/Extensions/StringExtensions.cs index e4a14a7b9c..7b53ab8857 100644 --- a/src/GitVersion.Core/Extensions/StringExtensions.cs +++ b/src/GitVersion.Core/Extensions/StringExtensions.cs @@ -107,5 +107,4 @@ public static bool IsEquivalentTo(this string self, string? other) => public static string WithPrefixIfNotNullOrEmpty(this string value, string prefix) => string.IsNullOrEmpty(value) ? value : prefix + value; - }