Liquid::Drop: Expect @context to always be set

This commit is contained in:
Thierry Joyal
2022-03-02 12:05:24 +00:00
parent ce85ac5d3d
commit c0ffeef30a
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ module Liquid
# Catch all for the method
def liquid_method_missing(method)
return nil unless @context&.strict_variables
return nil unless @context.strict_variables
raise Liquid::UndefinedDropMethod, "undefined method #{method}"
end