Skip to content

Commit

Permalink
Parser.java: Add explicit 'Fallthrough' statement for certain cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nur-haziq committed Apr 15, 2024
1 parent 1839297 commit 5f0b9ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/seedu/binbash/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public Command parseCommand(String userInput) throws InvalidCommandException {

switch (commandString) {
case "bye":
//Fallthrough
case "exit":
//Fallthrough
case "quit":
return new ByeCommand();
case "add":
Expand Down

0 comments on commit 5f0b9ba

Please sign in to comment.