From d614cc94ede440efb697a5fc2f8eec2dbe64a261 Mon Sep 17 00:00:00 2001 From: Michael Tanczos Date: Thu, 2 May 2024 07:15:23 -0400 Subject: [PATCH] fix: Add null-forgiving operator in Reswap call Updated the Reswap method call within the HtmxResponse class to turn off warnings about using a possible null string as a parameter to a method that accepts string --- src/Htmxor/Http/HtmxResponse.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Htmxor/Http/HtmxResponse.cs b/src/Htmxor/Http/HtmxResponse.cs index e47c4c4..6f49786 100644 --- a/src/Htmxor/Http/HtmxResponse.cs +++ b/src/Htmxor/Http/HtmxResponse.cs @@ -161,7 +161,7 @@ public HtmxResponse Reswap(SwapStyle swapStyle, string? modifier = null) if (swapStyle is SwapStyle.Default) { - Reswap(modifier); + Reswap(modifier!); return this; }