Skip to content

Commit 06d5123

Browse files
committed
chore: code cleanup for sonarlint
1 parent 47730dc commit 06d5123

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/main/java/de/rexlmanu/fairychat/plugin/Constants.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import java.util.UUID;
44

55
public class Constants {
6+
private Constants() {
7+
throw new UnsupportedOperationException();
8+
}
69
/*
710
* The server id is used to identify the server in the redis network.
811
*/

src/main/java/de/rexlmanu/fairychat/plugin/module/CommandModule.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ public final CommandManager<CommandSender> provideCommandManager(
3737
.parameterInjectorRegistry()
3838
.registerInjectionService(context -> injector.getInstance(context.getSecond()));
3939

40-
// new MinecraftExceptionHandler<CommandSender>()
41-
// .withHandler(MinecraftExceptionHandler.ExceptionType.NO_PERMISSION,
42-
// e -> Component.text("You don't have permission to do this!")
43-
// .style(builder -> builder.color(NamedTextColor.RED)))
44-
// .apply(commandManager, sender -> sender);
45-
4640
return commandManager;
4741
} catch (Exception e) {
4842
throw new RuntimeException("Failed to initialize the CommandManager");

0 commit comments

Comments
 (0)