1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Fixed error

This commit is contained in:
JKorf 2024-01-04 21:33:10 +01:00
parent 4f2d7abc7e
commit ad1bdd9a3f

View File

@ -61,7 +61,7 @@ namespace CryptoExchange.Net.Converters
if (string.IsNullOrWhiteSpace(stringValue) if (string.IsNullOrWhiteSpace(stringValue)
|| stringValue == "-1" || stringValue == "-1"
|| (double.TryParse(stringValue, out var doubleValue) && doubleValue == 0)) || (double.TryParse(stringValue, out var doubleVal) && doubleVal == 0))
{ {
return objectType == typeof(DateTime) ? default(DateTime) : null; return objectType == typeof(DateTime) ? default(DateTime) : null;
} }