Skip to content

Commit 912988a

Browse files
committed
#3924 - fix warning
1 parent 57fb1ac commit 912988a

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using GitVersion.Configuration;
2-
31
namespace GitVersion;
42

53
public enum IncrementStrategy
@@ -8,21 +6,5 @@ public enum IncrementStrategy
86
Major,
97
Minor,
108
Patch,
11-
/// <summary>
12-
/// Uses the <see cref="IBranchConfiguration.Increment"/>, <see cref="IBranchConfiguration.PreventIncrementOfMergedBranchVersion"/> and <see cref="IBranchConfiguration.TracksReleaseBranches"/>
13-
/// of the "parent" branch (i.e. the branch where the current branch was branched from).
14-
/// </summary>
159
Inherit
1610
}
17-
18-
public static class IncrementStrategyExtensions
19-
{
20-
public static VersionField ToVersionField(this IncrementStrategy strategy) => strategy switch
21-
{
22-
IncrementStrategy.None => VersionField.None,
23-
IncrementStrategy.Major => VersionField.Major,
24-
IncrementStrategy.Minor => VersionField.Minor,
25-
IncrementStrategy.Patch => VersionField.Patch,
26-
_ => throw new ArgumentOutOfRangeException(nameof(strategy), strategy, null)
27-
};
28-
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace GitVersion;
2+
3+
public static class IncrementStrategyExtensions
4+
{
5+
public static VersionField ToVersionField(this IncrementStrategy strategy) => strategy switch
6+
{
7+
IncrementStrategy.None => VersionField.None,
8+
IncrementStrategy.Major => VersionField.Major,
9+
IncrementStrategy.Minor => VersionField.Minor,
10+
IncrementStrategy.Patch => VersionField.Patch,
11+
_ => throw new ArgumentOutOfRangeException(nameof(strategy), strategy, null)
12+
};
13+
}

0 commit comments

Comments
 (0)