Skip to content

Commit 3ffbf8e

Browse files
Remove default value for 'formatProvider' in SemanticVersionPreReleaseTag.ToString
- Align SemanticVersion.ToString implementation of IFormattable.ToString with .NET Standard 2.0 definition.
1 parent 94ac0b6 commit 3ffbf8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersion.Core/VersionCalculation/SemanticVersioning/SemanticVersionPreReleaseTag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public int CompareTo(SemanticVersionPreReleaseTag? other)
111111
/// <para>l - Legacy SemVer tag with the tag number padded. [beta1]</para>
112112
/// <para>lp - Legacy SemVer tag with the tag number padded. [beta0001]. Can specify an integer to control padding (i.e., lp5)</para>
113113
/// </summary>
114-
public string ToString(string format, IFormatProvider formatProvider = null)
114+
public string ToString(string format, IFormatProvider formatProvider)
115115
{
116116
if (formatProvider != null)
117117
{

0 commit comments

Comments
 (0)