Remove useless method call
This commit is contained in:
parent
4747cd95c1
commit
57366b7fd6
|
@ -103,7 +103,7 @@ module RablRails
|
||||||
def node(name, options = {}, &block)
|
def node(name, options = {}, &block)
|
||||||
condition = options[:if]
|
condition = options[:if]
|
||||||
|
|
||||||
if condition.present?
|
if condition
|
||||||
if condition.is_a?(Proc)
|
if condition.is_a?(Proc)
|
||||||
@template[name] = [condition, block]
|
@template[name] = [condition, block]
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue