Skip to content

Commit 6fc49b3

Browse files
committed
feat: remove redundant check
1 parent 4ab3b16 commit 6fc49b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Base58Encoding/CountLeading.Base58.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ internal static int CountLeadingZerosScalar(ReadOnlySpan<byte> data)
109109
[MethodImpl(MethodImplOptions.AggressiveInlining)]
110110
internal static int CountLeadingCharacters(ReadOnlySpan<char> text, char target)
111111
{
112-
if (text.IsEmpty) return 0;
113-
114112
int count = 0;
115113
ref char searchSpace = ref MemoryMarshal.GetReference(text);
116114

0 commit comments

Comments
 (0)