Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-flynn committed Aug 14, 2024
1 parent 2a7ee49 commit 69e3b85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/models/src/seasons/FeedingTheFuture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ function calculateRankings(
ranking.wins = ranking.wins + (redWin ? 1 : 0);
ranking.losses = ranking.losses + (redWin ? 0 : 1);
ranking.ties = ranking.ties + (isTie ? 1 : 0);
ranking.foodSecuredPoints =
ranking.foodSecuredPoints +
ranking.foodSecuredPoints +=
match.details.redFoodSecured * ScoreTable.FoodSecured;
if (ranking.highestScore < match.redScore) {
ranking.highestScore = match.redScore;
Expand All @@ -176,8 +175,7 @@ function calculateRankings(
ranking.wins = ranking.wins + (blueWin ? 1 : 0);
ranking.losses = ranking.losses + (blueWin ? 0 : 1);
ranking.ties = ranking.ties + (isTie ? 1 : 0);
ranking.foodSecuredPoints =
ranking.foodSecuredPoints +
ranking.foodSecuredPoints +=
match.details.blueFoodSecured * ScoreTable.FoodSecured;
if (ranking.highestScore < match.blueScore) {
ranking.highestScore = match.blueScore;
Expand Down

0 comments on commit 69e3b85

Please sign in to comment.