Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalette committed Sep 29, 2023
1 parent cc47fa8 commit 33e1a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/liquid/standardfilters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33e1a8f

Please sign in to comment.