提交 4ce16d1f 编写于 作者: J Justin Collins

Handle errors when using class_name in FindAllCalls

fixes #42
上级 1031f505
......@@ -120,7 +120,11 @@ class Brakeman::FindAllCalls < Brakeman::BaseProcessor
when :lit
exp[1]
when :colon2
class_name exp
begin
class_name exp
rescue StandardError
exp
end
when :self
@current_class || @current_module || nil
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册