Skip to content

Commit 4c2e6a0

Browse files
committed
fixup! Make types internal
1 parent 9b9c5b2 commit 4c2e6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnitsNet/UnitFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private static bool NearlyEqual(double a, double b)
9393
public static object[] GetFormatArgs<TUnit>(TUnit unit, double value, [CanBeNull] CultureInfo culture, IEnumerable<object> args)
9494
where TUnit : struct, IComparable, IFormattable
9595
{
96-
string abbreviation = UnitSystem.GetCached(culture).GetDefaultAbbreviation(typeof(TUnit), Convert.ToInt32(unit));
96+
string abbreviation = UnitSystem.GetCached(culture).GetDefaultAbbreviation(unit);
9797
return new object[] { value, abbreviation }.Concat(args).ToArray();
9898
}
9999
}

0 commit comments

Comments
 (0)