Skip to content

Commit

Permalink
fix(CA1065): GetHashCode creates an exception of type NotImplementedE…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
skwasjer committed Sep 30, 2024
1 parent 09a2457 commit 64cd9c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MockHttp/Internal/Http/HttpHeaderEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ public bool Equals(KeyValuePair<string, IEnumerable<string>> x, KeyValuePair<str
}
}

#pragma warning disable CA1065 // Justification: not used with dictionaries/hash sets.
public int GetHashCode(KeyValuePair<string, IEnumerable<string>> obj)
{
throw new NotImplementedException();
}
#pragma warning restore CA1065
}

0 comments on commit 64cd9c3

Please sign in to comment.