diff --git a/src/main/java/seedu/address/logic/commands/UpdateCommand.java b/src/main/java/seedu/address/logic/commands/UpdateCommand.java index 8404ccd13a9..72dec8b0349 100644 --- a/src/main/java/seedu/address/logic/commands/UpdateCommand.java +++ b/src/main/java/seedu/address/logic/commands/UpdateCommand.java @@ -82,7 +82,6 @@ public class UpdateCommand extends Command { public static final String MESSAGE_UPDATE_PERSON_SUCCESS = "Updated Person ->\n%1$s"; public static final String MESSAGE_NOT_UPDATED = "At least one field to update must be provided."; public static final String MESSAGE_DUPLICATE_PERSON = "This person already exists in the address book."; - // public static final String MESSAGE_NRIC_NOT_UPDATED = "NRIC cannot be updated."; (unsure if allowed) private final Nric nric; private final UpdatePersonDescriptor updatePersonDescriptor; diff --git a/src/main/java/seedu/address/logic/parser/UpdateCommandParser.java b/src/main/java/seedu/address/logic/parser/UpdateCommandParser.java index 4f18810bd54..f134eaefc20 100644 --- a/src/main/java/seedu/address/logic/parser/UpdateCommandParser.java +++ b/src/main/java/seedu/address/logic/parser/UpdateCommandParser.java @@ -64,11 +64,6 @@ public UpdateCommand parse(String args) throws ParseException { UpdatePersonDescriptor updatePersonDescriptor = new UpdatePersonDescriptor(); updatePersonDescriptor.setNric(nric); - /* unsure if allowed - if (argMultimap.getValue(PREFIX_NRIC).isPresent()) { - throw new ParseException(UpdateCommand.MESSAGE_NRIC_NOT_UPDATED); - } */ - // Mandatory fields if (argMultimap.getValue(PREFIX_NAME).isPresent()) { updatePersonDescriptor.setName(ParserUtil.parseName(argMultimap.getValue(PREFIX_NAME).get()));