提交 80c61c9f 编写于 作者: J Justin Collins

Fix Warnings as hash keys

上级 c14ee0ca
......@@ -45,6 +45,14 @@ class Brakeman::Warning
end
end
def hash
self.format_message.hash
end
def eql? other_warning
self.hash == other_warning.hash
end
#Returns name of a view, including where it was rendered from
def view_name
return @view_name if @view_name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册