mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
add brackets to make intention clearer
This commit is contained in:
@@ -422,7 +422,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def default(input, default_value = '', allow_false: false)
|
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
|
default_value
|
||||||
else
|
else
|
||||||
input
|
input
|
||||||
|
|||||||
Reference in New Issue
Block a user