Skip to content

Commit

Permalink
http qol.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Nov 16, 2023
1 parent 74ebe3e commit d55cbc7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Http/HttpMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2598,9 +2598,7 @@ public override bool Equals(object obj)
{
if (object.ReferenceEquals(this, obj)) return true;

if ((obj is HttpMessage) is false) return false;

return Equals(obj as HttpMessage);
return obj is HttpMessage http && Equals(http);
}

#endregion
Expand Down

0 comments on commit d55cbc7

Please sign in to comment.