1 parent 3160630 commit b99ad40Copy full SHA for b99ad40
1 file changed
UnitsNet/CustomCode/Quantities/Length.extra.cs
@@ -44,8 +44,7 @@ public static Length FromFeetInches(QuantityValue feet, QuantityValue inches)
44
/// <returns>Parsed length.</returns>
45
public static Length ParseFeetInches(string str, IFormatProvider? formatProvider = null)
46
{
47
- if (str == null)
48
- throw new ArgumentNullException(nameof(str));
+ if (str == null) throw new ArgumentNullException(nameof(str));
49
if (!TryParseFeetInches(str, out Length result, formatProvider))
50
51
// A bit lazy, but I didn't want to duplicate this edge case implementation just to get more narrow exception descriptions.
0 commit comments