Skip to content

Commit 621ac0e

Browse files
committed
Minor cleanup
1 parent a256596 commit 621ac0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Samples/WpfMVVMSample/WpfMVVMSample/Converters/UnitToStringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
5555
try
5656
{
5757
// If input is just a number, use the configured default unit
58-
if (double.TryParse((string) value, out double number))
58+
if (double.TryParse(valueString, out double number))
5959
{
6060
Type unitEnumType = Quantity.Infos.First(qi => qi.ValueType == targetType).UnitType;
6161
Enum defaultUnit = _settings.GetDefaultUnit(unitEnumType);

0 commit comments

Comments
 (0)