From f5256e8b7e97e694db731f9b4c603ec151ce1034 Mon Sep 17 00:00:00 2001 From: XavierLiau34 Date: Thu, 14 Mar 2024 01:44:13 +0800 Subject: [PATCH] Parser --- src/main/java/seedu/binbash/Parser.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/seedu/binbash/Parser.java b/src/main/java/seedu/binbash/Parser.java index de6f04c7a3..8d60c18f70 100644 --- a/src/main/java/seedu/binbash/Parser.java +++ b/src/main/java/seedu/binbash/Parser.java @@ -19,12 +19,12 @@ public Command parseCommand(String userInput) { String arguments = tokens.length > 1 ? tokens[1] : ""; switch (commandString) { - case "delete": - return parseDeleteCommand(arguments); - case "list": - return parseListCommand(arguments); - default: - return null; + case "delete": + return parseDeleteCommand(arguments); + case "list": + return parseListCommand(arguments); + default: + return null; } } @@ -42,3 +42,4 @@ private Command parseListCommand(String arguments) { return new ListCommand(itemList); } } +