mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 15:30:39 -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>
|
||||
def []=(key, value)
|
||||
if !@this_stack_used
|
||||
unless @this_stack_used
|
||||
@this_stack_used = true
|
||||
push({})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user