Skip to content

Commit fb099e4

Browse files
committed
Revert "QuantityValue: Do not allow NaN value"
This reverts commit f2650dc.
1 parent f2650dc commit fb099e4

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

UnitsNet/InternalHelpers/Guard.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

UnitsNet/QuantityValue.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
// Operator overloads not supported in Windows Runtime Components, we use 'double' type instead
2323

24-
using UnitsNet.InternalHelpers;
25-
2624
#if !WINDOWS_UWP
2725
namespace UnitsNet
2826
{
@@ -57,7 +55,7 @@ public struct QuantityValue
5755

5856
private QuantityValue(double val)
5957
{
60-
_value = Guard.EnsureNotNaN(val, nameof(val));
58+
_value = val;
6159
_valueDecimal = null;
6260
}
6361

0 commit comments

Comments
 (0)