Skip to content

Commit 17fce5a

Browse files
authored
Merge pull request #76 from SimonCropp/remove-double-type-check
remove double type check
2 parents a5e2774 + 5ffb2da commit 17fce5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ByteSizeLib/ByteSize.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ public override bool Equals(object? value)
324324
return false;
325325

326326
ByteSize other;
327-
if (value is ByteSize)
328-
other = (ByteSize)value;
327+
if (value is ByteSize size)
328+
other = size;
329329
else
330330
return false;
331331

0 commit comments

Comments
 (0)