提交 d0f0fcf2 编写于 作者: R Rafael Mendonça França

Merge pull request #15247 from DNNX/activesupport-formatter-refactoring

Use `break` instead of `next` in AD::Journey::Formatter#match_route
......@@ -85,7 +85,7 @@ def match_route(name, options)
hash = routes.group_by { |_, r| r.score(options) }
hash.keys.sort.reverse_each do |score|
next if score < 0
break if score < 0
hash[score].sort_by { |i, _| i }.each do |_, route|
yield route
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册