TUR-9: Remove unnecessary reject (this never did anything; there is no state "running")
This commit is contained in:
parent
e184c76083
commit
22ab1eb69b
|
|
@ -15,7 +15,7 @@ class MatchesController < ApplicationController
|
||||||
if upcoming_matches.nil?
|
if upcoming_matches.nil?
|
||||||
next_level = 0
|
next_level = 0
|
||||||
@tournament.stages.sort_by(&:level).reverse_each do |stage|
|
@tournament.stages.sort_by(&:level).reverse_each do |stage|
|
||||||
if stage.matches.reject { |m| m.state == 'running' }.nil?
|
if stage.matches.nil?
|
||||||
next_level = stage.level - 1
|
next_level = stage.level - 1
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue