We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2eda09 commit c6d7565Copy full SHA for c6d7565
src/main/java/seedu/address/logic/commands/UpdateCommand.java
@@ -92,7 +92,7 @@ public CommandResult execute(Model model) throws CommandException {
92
new NricContainsKeywordsPredicate(nric.toString())).findFirst().get();
93
Person updatedPerson = createUpdatedPerson(personToUpdate, updatePersonDescriptor);
94
95
- if (!personToUpdate.isSamePerson(updatedPerson) && model.hasPerson(updatedPerson)) {
+ if (!(personToUpdate.isSamePerson(updatedPerson) && model.hasPerson(updatedPerson))) {
96
throw new CommandException(MESSAGE_DUPLICATE_PERSON);
97
}
98
0 commit comments