Skip to content

Commit 3829d5c

Browse files
tanczosmegil
authored andcommitted
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
1 parent 3102f65 commit 3829d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Htmxor/Http/HtmxResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public HtmxResponse Reswap(SwapStyle swapStyle, string? modifier = null)
161161

162162
if (swapStyle is SwapStyle.Default)
163163
{
164-
Reswap(modifier);
164+
Reswap(modifier!);
165165
return this;
166166
}
167167

0 commit comments

Comments
 (0)