Skip to content

Commit

Permalink
Fixed ByteArrayComparer.Compare double checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 committed Feb 13, 2024
1 parent 7b4b2d9 commit 259d29a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Neo.IO/ByteArrayComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ private ByteArrayComparer(int direction)

public int Compare(byte[]? x, byte[]? y)
{
if (ReferenceEquals(x, y)) return 0;
if (x is null && y is not null)
return _direction > 0 ? -y.Length : y.Length;
if (y is null && x is not null)
Expand Down

0 comments on commit 259d29a

Please sign in to comment.