TUR-9: Remove unnecessary reject (this never did anything; there is no state "running")

This commit is contained in:
Daniel Schädler 2022-05-19 23:51:56 +02:00
parent e184c76083
commit 22ab1eb69b
Signed by: Malaber
GPG Key ID: 4BB175A9617E4B11
1 changed files with 1 additions and 1 deletions

View File

@ -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