Skip to content

Commit

Permalink
chore: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 10, 2024
1 parent 49e79c4 commit 7c64c1d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/src/main/java/fi/sundae/bot/tournament/Matchmaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void endMatch(MatchRequest matchRequest, JDA jda) {
match.getThread().delete().queue();

if (matchRequest.getResult() == MatchResult.TIMEOUT) {
LOGGER.info("Match {} is over due to timeout", matchRequest.getGameTxHash());
LOGGER.info("Match {} is over due to timeout", matchRequest.getGameTxHash());
announceMatchTimeout(match, jda);
return;
} else if (matchRequest.getResult() == MatchResult.DISAGREEMENT) {
Expand All @@ -103,8 +103,11 @@ public void endMatch(MatchRequest matchRequest, JDA jda) {
Optional<Player> maybePlayerB =
QUALIFIER_REPOSITORY.getPlayerFromCompetitor(matchRequest.getPlayerTwo());
if (maybePlayerA.isEmpty() || maybePlayerB.isEmpty()) {
LOGGER.info("At least one competitor is not a qualified player | maybePlayerA.isPresent: {} | maybePlayerB" +
".isPresent: {}", maybePlayerA.isPresent(), maybePlayerB.isPresent());
LOGGER.info(
"At least one competitor is not a qualified player | maybePlayerA.isPresent: {} | maybePlayerB"
+ ".isPresent: {}",
maybePlayerA.isPresent(),
maybePlayerB.isPresent());
return;
}
Player playerA = maybePlayerA.get();
Expand Down

0 comments on commit 7c64c1d

Please sign in to comment.