Simplify concatenation of empty stages

This commit is contained in:
Daniel Schädler 2019-06-12 09:39:39 +02:00
parent 4384eb18e7
commit 8e3325bbfc
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@ class PlayoffStageService
playoffs << initial_stage
# empty stages are the stages, the tournament is filled with to have the matches ready for later
empty_stages = generate_stages_with_empty_matches(stage_count - 1)
empty_stages.each do |stage|
playoffs << stage
end
playoffs.concat empty_stages
playoffs
end