[Strainer] Remove safe navigation

This commit is contained in:
Thierry Joyal
2020-01-06 18:34:13 +00:00
parent 24e81267b9
commit c0ffee3ff9
3 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module Liquid
def invoke(method, *args)
if self.class.invokable?(method)
send(method, *args)
elsif @context&.strict_filters
elsif @context.strict_filters
raise Liquid::UndefinedFilter, "undefined filter #{method}"
else
args.first