From 33e1a8ffbc2f397237ac37ab36f233cf1f18bdbf Mon Sep 17 00:00:00 2001 From: Guillaume Malette Date: Fri, 29 Sep 2023 09:50:42 -0400 Subject: [PATCH] fix style --- lib/liquid/standardfilters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liquid/standardfilters.rb b/lib/liquid/standardfilters.rb index 41cae30fa..a2dbeb39d 100644 --- a/lib/liquid/standardfilters.rb +++ b/lib/liquid/standardfilters.rb @@ -34,7 +34,7 @@ def try_coerce_encoding(input, encoding:) original_encoding = input.encoding if input.encoding != encoding input.force_encoding(encoding) - if !input.valid_encoding? + unless input.valid_encoding? input.force_encoding(original_encoding) end end