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?
|
||||
next_level = 0
|
||||
@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
|
||||
break
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue