Simplify concatenation of empty stages
This commit is contained in:
parent
4384eb18e7
commit
8e3325bbfc
|
|
@ -15,9 +15,7 @@ class PlayoffStageService
|
||||||
playoffs << initial_stage
|
playoffs << initial_stage
|
||||||
# empty stages are the stages, the tournament is filled with to have the matches ready for later
|
# 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 = generate_stages_with_empty_matches(stage_count - 1)
|
||||||
empty_stages.each do |stage|
|
playoffs.concat empty_stages
|
||||||
playoffs << stage
|
|
||||||
end
|
|
||||||
playoffs
|
playoffs
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue