提交 a4222842 编写于 作者: O oreoshake

This code is unnecessary and is already handled

上级 fd30ae71
......@@ -72,12 +72,7 @@ class Brakeman::CheckRedirect < Brakeman::BaseCheck
args.each do |arg|
if res = has_immediate_model?(arg)
# polymorphic routes are assumed to be safe
if is_immediate_model? arg
return false
else
return Match.new(:immediate, res)
end
return Match.new(:immediate, res)
elsif call? arg
if request_value? arg
return Match.new(:immediate, arg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册