Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NatLeong committed Mar 22, 2024
1 parent 9e8deff commit d4108b7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/seedu/address/logic/commands/ReadCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
import seedu.address.logic.Messages;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
import seedu.address.model.person.Address;
import seedu.address.model.person.DateOfBirth;
import seedu.address.model.person.Name;
import seedu.address.model.person.Nric;
import seedu.address.model.person.NricContainsKeywordsPredicate;
import seedu.address.model.person.Person;
import seedu.address.model.person.Phone;
import seedu.address.model.person.Sex;
import seedu.address.model.person.Status;

/**
* Reads the details of an existing person in the address book.
Expand Down Expand Up @@ -47,10 +41,7 @@ public ReadCommand(Nric nric) {
@Override
public CommandResult execute(Model model) throws CommandException {
requireNonNull(model);
Person sample = new Person(this.nric, new Name("sample"), new Phone("12345678"), new Address("123 Lane"),
new DateOfBirth("1900-01-01"), new Sex("F"), new Status("HEALTHY"));
// Todo: change to find if person exists using only NRIC
if (model.hasPerson(sample)) {
if (model.hasPerson(Person.createPersonWithNric(nric))) {
throw new CommandException(MESSAGE_NO_PERSON);
}

Expand Down

0 comments on commit d4108b7

Please sign in to comment.