From 259d29ae150057cc882440bd55b4592b2a55ebb3 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 13 Feb 2024 04:44:13 -0500 Subject: [PATCH] Fixed `ByteArrayComparer.Compare` double checking. --- src/Neo.IO/ByteArrayComparer.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Neo.IO/ByteArrayComparer.cs b/src/Neo.IO/ByteArrayComparer.cs index 47d171758a..c6815419c1 100644 --- a/src/Neo.IO/ByteArrayComparer.cs +++ b/src/Neo.IO/ByteArrayComparer.cs @@ -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)