From 8e3325bbfca72d0f2b5b29c0bbe31edcdf515ceb Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Wed, 12 Jun 2019 09:39:39 +0200 Subject: [PATCH] Simplify concatenation of empty stages --- app/services/playoff_stage_service.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/services/playoff_stage_service.rb b/app/services/playoff_stage_service.rb index 38ccabc..60b44a6 100644 --- a/app/services/playoff_stage_service.rb +++ b/app/services/playoff_stage_service.rb @@ -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