mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 02:42:34 +08:00
refactor: unwrap redundant code block
This commit is contained in:
@@ -45,9 +45,7 @@ public final class TalentCommand implements CommandHandler {
|
||||
|
||||
String cmdSwitch = args.get(0).toLowerCase();
|
||||
switch (cmdSwitch) {
|
||||
default -> {
|
||||
sendUsageMessage(sender);
|
||||
}
|
||||
default -> sendUsageMessage(sender);
|
||||
case "set" -> {
|
||||
if (args.size() < 3) {
|
||||
sendUsageMessage(sender);
|
||||
|
||||
Reference in New Issue
Block a user