Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Sep 6, 2024
1 parent ab9074a commit a453733
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/Equatable.Comparers/DictionaryEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public bool Equals(IDictionary<TKey, TValue>? x, IDictionary<TKey, TValue>? y)
if (ReferenceEquals(x, y))
return true;

if (x == null || y == null)
if (x is null || y is null)
return false;

if (x.Count != y.Count)
Expand Down
2 changes: 1 addition & 1 deletion src/Equatable.Comparers/HashSetEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public bool Equals(IEnumerable<TValue>? x, IEnumerable<TValue>? y)
if (ReferenceEquals(x, y))
return true;

if (x == null || y == null)
if (x is null || y is null)
return false;

if (x is ISet<TValue> xSet)
Expand Down
2 changes: 1 addition & 1 deletion src/Equatable.Comparers/SequenceEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public bool Equals(IEnumerable<TValue>? x, IEnumerable<TValue>? y)
if (ReferenceEquals(x, y))
return true;

if (x == null || y == null)
if (x is null || y is null)
return false;

return x.SequenceEqual(y, Comparer);
Expand Down

This file was deleted.

0 comments on commit a453733

Please sign in to comment.