Skip to content

Commit

Permalink
Add the ability to save to file after deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jane-Ng committed Sep 18, 2020
1 parent fed1881 commit 29cc634
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/duke/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ private static void deleteTask(int taskDeleteIndex) throws IndexOutOfBoundsExcep
tasks.remove(taskDeleteIndex);
taskCount--;
showTaskDeleteMessage(task);
writeToFile();
}

/**
Expand Down

0 comments on commit 29cc634

Please sign in to comment.