Skip to content

Commit 18c9e93

Browse files
committed
Removed the chaining
It does not make sense any longer keep the builder approach
1 parent a5a334d commit 18c9e93

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Commands/src/main/java/org/broken/arrow/library/command/builers/CommandDisplayBuilder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ public CommandDisplayBuilder(@Nonnull final MainCommandHandler mainCommandHandle
4242
* }</pre>
4343
*
4444
* @param callback consumer used to configure {@link CommandDisplayConfig}
45-
* @return the original {@link SubcommandWrapper} builder to continue configuration
4645
*/
47-
public SubcommandWrapper display(final Consumer<CommandDisplayConfig> callback) {
46+
public void display(final Consumer<CommandDisplayConfig> callback) {
4847
callback.accept(mainCommandHandler.getCommandDisplayConfig());
49-
return new SubcommandWrapper( mainCommandHandler);
5048
}
5149

5250
}

0 commit comments

Comments
 (0)