Skip to content

Commit a08060d

Browse files
committed
Don't worry sonarcloud, I got your back.
Thanks for forcing me to suppress the ClassWithoutLogger warning
1 parent 4b144d6 commit a08060d

File tree

1 file changed

+2
-5
lines changed
  • application/src/main/java/org/togetherjava/tjbot/commands/moderation

1 file changed

+2
-5
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/moderation/WhoIsCommand.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import net.dv8tion.jda.api.interactions.components.ButtonStyle;
1313
import net.dv8tion.jda.api.requests.restaction.interactions.ReplyAction;
1414
import org.jetbrains.annotations.NotNull;
15-
import org.slf4j.Logger;
16-
import org.slf4j.LoggerFactory;
1715
import org.togetherjava.tjbot.commands.SlashCommandAdapter;
1816
import org.togetherjava.tjbot.commands.SlashCommandVisibility;
1917

@@ -30,9 +28,8 @@
3028
* You ever wanted to stalk someone on Discord? Well no need to worry anymore! I got you covered,
3129
* this command allows you to look up user (or member) info.
3230
*/
31+
@SuppressWarnings("ClassWithoutLogger")
3332
public final class WhoIsCommand extends SlashCommandAdapter {
34-
private static final Logger logger = LoggerFactory.getLogger(WhoIsCommand.class);
35-
3633
private static final String USER_OPTION = "user";
3734
private static final String SHOW_SERVER_SPECIFIC_INFO = "show_server_specific_info";
3835
private static final DateTimeFormatter DATE_TIME_FORMAT =
@@ -261,4 +258,4 @@ private static String formatUserFlags(final @NotNull Collection<User.UserFlag> f
261258
.filter(name -> (name.contains("Hypesquad")))
262259
.collect(Collectors.joining(", "));
263260
}
264-
}
261+
}

0 commit comments

Comments
 (0)