mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 01:10:41 -07:00
add brackets to make intention clearer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user