Upgrade rubocop and style guide for ruby 2.7 compatibility

This commit is contained in:
Dylan Thacker-Smith
2020-01-09 13:14:32 -05:00
parent 0847bf560f
commit 67eca3f58d
6 changed files with 32 additions and 30 deletions

View File

@@ -8,10 +8,10 @@ module Liquid
when :lax then lax_parse(markup)
when :warn
begin
return strict_parse_with_error_context(markup)
strict_parse_with_error_context(markup)
rescue SyntaxError => e
parse_context.warnings << e
return lax_parse(markup)
lax_parse(markup)
end
end
end