Skip to content

Commit daa7870

Browse files
committed
Revert "Update src/KubernetesClient/Models/ResourceQuantity.cs"
This reverts commit 62b20a6.
1 parent d4c548a commit daa7870

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/KubernetesClient/Models/ResourceQuantity.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,6 @@ private static bool HasMantissa(Fraction value)
171171

172172
public static implicit operator decimal(ResourceQuantity v)
173173
{
174-
// Handle default/uninitialized struct by returning zero
175-
// Fraction is a struct, so check if _unitlessValue is zero
176-
if (v._unitlessValue.IsZero)
177-
{
178-
return 0m;
179-
}
180174
return v.ToDecimal();
181175
}
182176

0 commit comments

Comments
 (0)