use 'unless' instead of 'if !' for simple conditional

This commit is contained in:
Tom Burns
2014-07-30 14:59:56 +00:00
parent f5e67a12f9
commit e53d102a2c
+1 -1
View File
@@ -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