Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrapkin committed Nov 19, 2021
1 parent 9b70e75 commit ed77524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Extensions/Base16Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override int GetHashCode()

public override bool Equals(object obj)
{
if (!(obj is Base16Config rhs))
if (obj is not Base16Config rhs)
return false;

if (this.GetHashCode() != rhs.GetHashCode())
Expand Down
2 changes: 1 addition & 1 deletion Extensions/Base32Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override int GetHashCode()

public override bool Equals(object obj)
{
if (!(obj is Base32Config rhs))
if (obj is not Base32Config rhs)
return false;

if (this.GetHashCode() != rhs.GetHashCode())
Expand Down
2 changes: 1 addition & 1 deletion Extensions/Base32Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static byte[] FromBase32(this string str32, Base32Config config = null)
result[index--] = (byte)tmp; tmp >>= 8;
result[index--] = (byte)tmp; tmp >>= 8;
result[index--] = (byte)tmp; tmp >>= 8;
result[index--] = (byte)tmp; tmp >>= 8;
result[index--] = (byte)tmp;
}
return result;
}//FromBase32()
Expand Down

0 comments on commit ed77524

Please sign in to comment.