Skip to content

Commit 1dd6e1d

Browse files
committed
fix credo lint
1 parent 1deab95 commit 1dd6e1d

File tree

1 file changed

+1
-2
lines changed
  • services/app/apps/codebattle/lib/codebattle/tournament/strategy

1 file changed

+1
-2
lines changed

services/app/apps/codebattle/lib/codebattle/tournament/strategy/base.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,13 +980,12 @@ defmodule Codebattle.Tournament.Base do
980980
|> Enum.each(fn player_id ->
981981
player = Tournament.Players.get_player(tournament, player_id)
982982

983-
if player do
983+
player ||
984984
Tournament.Players.put_player(tournament, %{
985985
player
986986
| score: player.score + player_results[player_id].score,
987987
lang: player_results[player_id].lang
988988
})
989-
end
990989
end)
991990
end
992991
)

0 commit comments

Comments
 (0)