Skip to content

Commit

Permalink
Change code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
yucheng11122017 committed Sep 17, 2021
1 parent b89a6af commit e4c2075
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
50 changes: 25 additions & 25 deletions src/main/java/duke/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String taskAdded(Task task, int count) {
}

/**
* Return string saying bye.
* Returns string saying bye.
*
* @return String saying bye.
*/
Expand Down Expand Up @@ -122,30 +122,30 @@ public String showTagsAdded(Tasklist taggedTasks, ArrayList<String> tags) {
*/
public String helpMessage(CommandsTypes commandsType) {
switch (commandsType) {
case ADD: {
return AddCommand.getHelpMessage();
}
case LIST: {
return ListCommand.getHelpMessage();
}
case DELETE: {
return DeleteCommand.getHelpMessage();
}
case TAG: {
return TagCommand.getHelpMessage();
}
case FIND: {
return FindCommand.getHelpMessage();
}
case MARK_DONE: {
return MarkDoneCommand.getHelpMessage();
}
case HELP: {
return HelpCommand.getHelpMessage();
}
default: {
assert false : "Unknown command type for help";
}
case ADD: {
return AddCommand.getHelpMessage();
}
case LIST: {
return ListCommand.getHelpMessage();
}
case DELETE: {
return DeleteCommand.getHelpMessage();
}
case TAG: {
return TagCommand.getHelpMessage();
}
case FIND: {
return FindCommand.getHelpMessage();
}
case MARK_DONE: {
return MarkDoneCommand.getHelpMessage();
}
case HELP: {
return HelpCommand.getHelpMessage();
}
default: {
assert false : "Unknown command type for help";
}
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/duke/command/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static Command makeCommand(CommandsTypes type, String ...keywords) throws
}

/**
* Command will execute.
* Executes the command.
*
* @param tasks the task to be executed in the command.
* @param ui the ui to interact with the user.
Expand Down

0 comments on commit e4c2075

Please sign in to comment.