Skip to content

Commit

Permalink
Fixed performance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jezzsantos committed Aug 18, 2024
1 parent 80f9817 commit 0f71c59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Common/SubscriptionMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public bool Equals(SubscriptionMetadata? other)
}

return Count == other.Count
// ReSharper disable once UsageOfDefaultStructEquality
&& !this.Except(other).Any();
}

Expand Down Expand Up @@ -51,6 +52,7 @@ public override int GetHashCode()
var hash = 0;
foreach (var pair in this)
{
// ReSharper disable once UsageOfDefaultStructEquality
hash ^= pair.GetHashCode();
}

Expand Down

0 comments on commit 0f71c59

Please sign in to comment.