提交 8cc2a0ac 编写于 作者: J Justin Collins

Fix error processing route namespace without arg

上级 2ea1e02d
......@@ -229,7 +229,9 @@ class Brakeman::Rails2RoutesProcessor < Brakeman::BaseProcessor
@prefix << camelize(call.first_arg.value)
@nested = Sexp.new(:lvar, formal_args.lhs)
if formal_args
@nested = Sexp.new(:lvar, formal_args.lhs)
end
process block
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册