Skip to content

Commit

Permalink
fix: CommandResult.getCommandContext -> commandContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Dec 20, 2023
1 parent 76247df commit 3bb0e10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public final boolean registerCommand(final @NonNull Command<C> command) {
.function(context -> {
final CommandExecutionEvent<C> event = new CommandExecutionEvent<>(command, context);
this.applicationEventPublisher.publishEvent(event);
return Objects.requireNonNull(event.result(), "result").getCommandContext().getOrDefault(
return Objects.requireNonNull(event.result(), "result").commandContext().getOrDefault(
SpringCommandManager.OUTPUT,
null
);
Expand Down

0 comments on commit 3bb0e10

Please sign in to comment.