提交 50bd3129 编写于 作者: J Justin Collins

Use Util.call? instead of node_type == :call

ugh this is why I wrote those helpers...
上级 94b7b629
......@@ -104,7 +104,7 @@ class Brakeman::TemplateAliasProcessor < Brakeman::AliasProcessor
return nil
elsif exp.node_type == :ivar and exp.value == :@output_buffer
return nil
elsif exp.node_type == :call and exp.target.node_type == :call and
elsif exp.node_type == :call and call? exp.target and
exp.target.method == :_hamlout and exp.method == :buffer
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册