Skip to content

Commit dc69270

Browse files
authored
Rename variable to unitTypeName
1 parent 21c2f84 commit dc69270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitsNet/UnitConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ private static bool TryParseUnit(Type unitType, string unitName, out object unit
407407

408408
private static bool TryGetUnitType(string quantityName, out Type unitType)
409409
{
410-
var quantityTypeName = quantityName += "Unit"; // ex. LengthUnit
410+
var unitTypeName = quantityName += "Unit"; // ex. LengthUnit
411411
unitType = UnitTypes.FirstOrDefault(x =>
412-
x.Name.Equals(quantityTypeName, StringComparison.OrdinalIgnoreCase));
412+
x.Name.Equals(unitTypeName, StringComparison.OrdinalIgnoreCase));
413413

414414
if(unitType == null)
415415
return false;

0 commit comments

Comments
 (0)