From 45219b4f59c4cab720cdc4dbe9b0ed709801b67c Mon Sep 17 00:00:00 2001 From: Marek Date: Mon, 10 Apr 2023 23:29:31 +0800 Subject: [PATCH] Fix Switch Indentation --- .../java/seedu/pettracker/data/PetList.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/seedu/pettracker/data/PetList.java b/src/main/java/seedu/pettracker/data/PetList.java index 1e1974ed6f..99f79b6cd6 100644 --- a/src/main/java/seedu/pettracker/data/PetList.java +++ b/src/main/java/seedu/pettracker/data/PetList.java @@ -185,20 +185,20 @@ public static void editPetStats(String petName, String stat, String newValue) } Pet petToEdit = PetList.get(index); switch (stat.toLowerCase()) { - case "name": - petToEdit.setPetName(newValue); - break; - case "type": - petToEdit.setPetType(newValue); - break; - case "age": - petToEdit.setAge(newValue); - break; - case "weight": - petToEdit.setWeight(newValue); - break; - default: - throw new InvalidStatException(); + case "name": + petToEdit.setPetName(newValue); + break; + case "type": + petToEdit.setPetType(newValue); + break; + case "age": + petToEdit.setAge(newValue); + break; + case "weight": + petToEdit.setWeight(newValue); + break; + default: + throw new InvalidStatException(); } }