Skip to content

Commit

Permalink
Reduce FFA LoC for clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
williamgrosset committed Feb 19, 2024
1 parent c1cb92e commit 70d2fb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/matches/free-for-all/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export class FreeForAll extends Match {
throw new MatchError(ErrorType.MISSING_OPPONENT_ELO)
}

const elo = player.calculate(opponentElo, j > i, this.kFactor)

eloDiff += elo
eloDiff += player.calculate(opponentElo, j > i, this.kFactor)
}
}

Expand Down

0 comments on commit 70d2fb7

Please sign in to comment.