Skip to content

Commit

Permalink
Reduce unnecessary complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Jan 3, 2025
1 parent 0ede92a commit 15a022e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions SabreTools.Hashing/HashWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,8 @@ public byte[]? CurrentHashBytes
return ha.Hash;

#if NET462_OR_GREATER || NETCOREAPP
case XxHash3 xxh3:
return xxh3.GetCurrentHash();
case XxHash128 xxh128:
return xxh128.GetCurrentHash();
case NonCryptographicHashAlgorithm ncha:
var nchaArr = ncha.GetCurrentHash();
Array.Reverse(nchaArr);
return nchaArr;
return ncha.GetCurrentHash();
#endif

#if NET8_0_OR_GREATER
Expand Down

0 comments on commit 15a022e

Please sign in to comment.