From d55cbc751e991ae259b7bf04bf8366e862d79361 Mon Sep 17 00:00:00 2001 From: Julius Friedman Date: Wed, 15 Nov 2023 19:09:50 -0500 Subject: [PATCH] http qol. --- Http/HttpMessage.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Http/HttpMessage.cs b/Http/HttpMessage.cs index aa22e33d..d0387070 100644 --- a/Http/HttpMessage.cs +++ b/Http/HttpMessage.cs @@ -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