Skip to content

Commit 0537a8a

Browse files
committed
Rename local variable hex to n
1 parent 94fd78c commit 0537a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitVersion.Core/Formatting/NumericFormatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public override bool TryFormat(object? value, string format, CultureInfo culture
2121
}
2222

2323
// Integer formatting with precision specifier
24-
if ("BDX".Contains(char.ToUpperInvariant(format[0])) && int.TryParse(s, NumberStyles.Integer, cultureInfo, out var hex))
24+
if ("BDX".Contains(char.ToUpperInvariant(format[0])) && int.TryParse(s, NumberStyles.Integer, cultureInfo, out var n))
2525
{
26-
result = hex.ToString(format, cultureInfo);
26+
result = n.ToString(format, cultureInfo);
2727
return true;
2828
}
2929

0 commit comments

Comments
 (0)