Skip to content

Commit

Permalink
redundant distinct method invocation could be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
testfirstcoder committed Mar 11, 2024
1 parent 2a9b801 commit 805ecda
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public bool Equals(IEnumerable<KeyValuePair<TKey, TValue>>? x, IEnumerable<KeyVa

var allKeys = x.Select(pair => pair.Key)
.Union(y.Select(pair => pair.Key))
.Distinct()
.ToList();

if (allKeys.Count != x.Count())
Expand Down

0 comments on commit 805ecda

Please sign in to comment.