Skip to content

Commit 1d69c89

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 11b0952 commit 1d69c89

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
@@ -117,7 +117,7 @@ public int CompareTo(SemanticVersionPreReleaseTag? other)
117117
/// <para>l - Legacy SemVer tag with the tag number padded. [beta1]</para>
118118
/// <para>lp - Legacy SemVer tag with the tag number padded. [beta0001]. Can specify an integer to control padding (i.e., lp5)</para>
119119
/// </summary>
120-
public string ToString(string format, IFormatProvider formatProvider = null)
120+
public string ToString(string format, IFormatProvider formatProvider)
121121
{
122122
if (formatProvider != null)
123123
{

0 commit comments

Comments
 (0)