Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren159 committed Oct 15, 2023
1 parent dee3ed2 commit 7d1929e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/main/java/seedu/address/logic/commands/PinCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public CommandResult execute(Model model) throws CommandException {
}

Person personToPin = lastShownList.get(targetIndex.getZeroBased());
Person pinnedPerson = new Person(personToPin.getName(), personToPin.getEmail(), personToPin.getPhone(), personToPin.getGender(),
personToPin.getAge(), personToPin.getBloodType(), personToPin.getAllergies(), true);
Person pinnedPerson = new Person(personToPin.getName(), personToPin.getEmail(), personToPin.getPhone(),
personToPin.getGender(), personToPin.getAge(), personToPin.getBloodType(), personToPin.getAllergies(),
true);

model.setPerson(personToPin, pinnedPerson);
return new CommandResult(String.format(MESSAGE_PIN_PERSON_SUCCESS, Messages.format(personToPin)));
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/seedu/address/logic/commands/UnpinCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public CommandResult execute(Model model) throws CommandException {
}

Person personToUnpin = lastShownPinnedList.get(targetIndex.getZeroBased());
Person unpinnedPerson = new Person(personToUnpin.getName(), personToUnpin.getEmail(), personToUnpin.getPhone(), personToUnpin.getGender(),
personToUnpin.getAge(), personToUnpin.getBloodType(), personToUnpin.getAllergies(), false);
Person unpinnedPerson = new Person(personToUnpin.getName(), personToUnpin.getEmail(), personToUnpin.getPhone(),
personToUnpin.getGender(), personToUnpin.getAge(), personToUnpin.getBloodType(),
personToUnpin.getAllergies(), false);

model.setPerson(personToUnpin, unpinnedPerson);
return new CommandResult(String.format(MESSAGE_UNPIN_PERSON_SUCCESS, Messages.format(personToUnpin)));
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/seedu/address/storage/JsonAdaptedPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public Person toModelType() throws IllegalValueException {
final BloodType modelBloodType = new BloodType(bloodType);

final Set<Allergy> modelAllergies = new HashSet<>(allergiesList);
return new Person(modelName, modelEmail, modelPhone, modelGender, modelAge, modelBloodType, modelAllergies, false);
return new Person(modelName, modelEmail, modelPhone, modelGender, modelAge, modelBloodType, modelAllergies,
false);
}

}

0 comments on commit 7d1929e

Please sign in to comment.