Skip to content

Commit 393979b

Browse files
committed
minor cleanup change
1 parent 91b7f16 commit 393979b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/me/kodysimpson/simpapi/command/CoreCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
7070
(Player) sender, args
7171
);
7272

73-
if(!(subCommandArgs == null))
73+
//getSubcommandArguments will have returned null if no implementation was provided.
74+
if(subCommandArgs != null)
7475
return subCommandArgs;
7576

7677
return Collections.emptyList();

0 commit comments

Comments
 (0)