提交 424b34b0 编写于 作者: B Bart ten Brinke

Use each instead of map.

上级 29bcff47
......@@ -26,7 +26,7 @@ class Brakeman::CheckLinkTo < Brakeman::CheckCrossSiteScripting
@models = tracker.models.keys
@inspect_arguments = tracker.options[:check_arguments]
tracker.find_call(:target => false, :method => :link_to).map {|call| process_result call}
tracker.find_call(:target => false, :method => :link_to).each {|call| process_result call}
end
def process_result result
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册