Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit0718 committed Oct 14, 2021
1 parent 4a7fcc4 commit 2bd5a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public CommandResult execute(Model model) throws CommandException {
}
Lesson lessonToDelete = lessons.get(targetIndex.getZeroBased());
model.deleteLesson(module, lessonToDelete);
return new CommandResult(String.format(MESSAGE_DELETE_LESSON_SUCCESS, lessonToDelete.getName(), targetModuleCode));
return new CommandResult(String.format(MESSAGE_DELETE_LESSON_SUCCESS,
lessonToDelete.getName(), targetModuleCode));
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/ModelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void deleteExam(Module module, Exam target) {
public void deleteLesson(Module module, Lesson target) {
modBook.removeLesson(module, target);
}

@Override
public boolean moduleHasLesson(Module module, Lesson lesson) {
List<Lesson> lessons = module.getLessons();
Expand Down

0 comments on commit 2bd5a51

Please sign in to comment.