Skip to content

Commit

Permalink
chore: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 11, 2024
1 parent 987f186 commit 852039d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public ActiveMatchesHandler(Matchmaker matchmaker) {

@Override
public void handle(@NotNull Context ctx) throws Exception {
Gson gson = new GsonBuilder().registerTypeAdapter(Match.class, new Match.MatchSerializer()).create();
Gson gson =
new GsonBuilder().registerTypeAdapter(Match.class, new Match.MatchSerializer()).create();
ctx.json(gson.toJson(MATCHMAKER.getActiveMatches()));
}
}
3 changes: 0 additions & 3 deletions app/src/main/java/fi/sundae/bot/tournament/Match.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fi.sundae.bot.tournament;

import com.google.gson.*;

import java.awt.*;
import java.io.IOException;
import java.lang.reflect.Type;
Expand All @@ -10,7 +9,6 @@
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.MessageEmbed;
import net.dv8tion.jda.api.entities.channel.concrete.ThreadChannel;
Expand Down Expand Up @@ -245,5 +243,4 @@ public JsonElement serialize(Match match, Type typeOfSrc, JsonSerializationConte
return jsonObject;
}
}

}

0 comments on commit 852039d

Please sign in to comment.