diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index d16eaae6b55..5e142f8c658 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -106,7 +106,8 @@ private static Person createEditedPerson(Person personToEdit, EditPersonDescript Set updatedTags = editPersonDescriptor.getTags().orElse(personToEdit.getTags()); Remark updatedRemark = personToEdit.getRemark(); Subject updatedSubject = editPersonDescriptor.getSubject().orElse(personToEdit.getSubject()); - Lesson updatedUpcomingLesson = editPersonDescriptor.getUpcomingLesson().orElse(personToEdit.getUpcomingLesson()); + Lesson updatedUpcomingLesson = editPersonDescriptor.getUpcomingLesson() + .orElse(personToEdit.getUpcomingLesson()); return new Person(updatedName, updatedPhone, updatedEmail, updatedAddress, updatedSubject, updatedUpcomingLesson, updatedRemark, updatedTags);