Skip to content

Commit

Permalink
Fix failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sangupta committed Sep 2, 2016
1 parent 347717a commit 6492091
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/com/sangupta/outline/Outline.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ public Outline withDescription(String description) {

@Override
public Outline withDefaultCommand(Class<?> defaultCommand) {
if(this.singleCommandMode) {
throw new IllegalStateException("Cannot set default command in single-command mode.");
}

this.defaultCommand = defaultCommand;
super.withDefaultCommand(defaultCommand);
return this;
}

Expand Down

0 comments on commit 6492091

Please sign in to comment.