refactor: simplify playoff loser lookup
This commit is contained in:
parent
57aecd7cc5
commit
f3ef3f4373
|
|
@ -40,9 +40,6 @@ class Match < ApplicationRecord
|
|||
end
|
||||
|
||||
def loser
|
||||
return nil unless finished?
|
||||
return nil if single_team?
|
||||
|
||||
winning_team = winner
|
||||
return nil if winning_team.nil?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue