Skip to content

Commit

Permalink
Fix Switch Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marekpinto committed Apr 10, 2023
1 parent 3404b9c commit 45219b4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/main/java/seedu/pettracker/data/PetList.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 45219b4

Please sign in to comment.