add brackets to make intention clearer

This commit is contained in:
Mike Angell
2019-10-02 21:41:15 +10:00
parent 135a4bc84d
commit f7076e1682
+1 -1
View File
@@ -422,7 +422,7 @@ module Liquid
end
def default(input, default_value = '', allow_false: false)
if (allow_false ? input.nil? : !input) || input.respond_to?(:empty?) && input.empty?
if (allow_false ? input.nil? : !input) || (input.respond_to?(:empty?) && input.empty?)
default_value
else
input