Use `break` instead of `next` in AD::Journey::Formatter#match_route
The array is sorted in descending order, so there is no point in iterating further if we met a negative item - all the rest will be negative too.
Showing
想要评论请 注册 或 登录
The array is sorted in descending order, so there is no point in iterating further if we met a negative item - all the rest will be negative too.