Skip to content

Commit

Permalink
Fixed checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlengch committed Mar 19, 2024
1 parent 85ab92a commit 99ec1bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/seedu/address/logic/commands/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ private static Person createEditedPerson(Person personToEdit, EditPersonDescript
Set<Tag> 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);
Expand Down

0 comments on commit 99ec1bf

Please sign in to comment.