mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
use 'unless' instead of 'if !' for simple conditional
This commit is contained in:
@@ -151,7 +151,7 @@ module Liquid
|
|||||||
|
|
||||||
# Only allow String, Numeric, Hash, Array, Proc, Boolean or <tt>Liquid::Drop</tt>
|
# Only allow String, Numeric, Hash, Array, Proc, Boolean or <tt>Liquid::Drop</tt>
|
||||||
def []=(key, value)
|
def []=(key, value)
|
||||||
if !@this_stack_used
|
unless @this_stack_used
|
||||||
@this_stack_used = true
|
@this_stack_used = true
|
||||||
push({})
|
push({})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user