Guard clause to make Hound woof
This commit is contained in:
parent
8c39fa9894
commit
1a96cefbc8
|
|
@ -18,11 +18,11 @@ class GroupStageService
|
||||||
end
|
end
|
||||||
|
|
||||||
def deal_with_spacing_of_teams(matches, team_size)
|
def deal_with_spacing_of_teams(matches, team_size)
|
||||||
if team_size == 4
|
return unless team_size == 4
|
||||||
|
|
||||||
matches[2].position, matches[4].position = matches[4].position, matches[2].position
|
matches[2].position, matches[4].position = matches[4].position, matches[2].position
|
||||||
matches
|
matches
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def generate_all_matches_between(teams)
|
def generate_all_matches_between(teams)
|
||||||
matches = []
|
matches = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue