Skip to content

Commit

Permalink
A-Release
Browse files Browse the repository at this point in the history
  • Loading branch information
MGRL2201 committed Sep 20, 2021
1 parent 91a4400 commit cafd45e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion Data/taskList.txt

This file was deleted.

Empty file removed New folder/taskList.txt
Empty file.
2 changes: 2 additions & 0 deletions src/main/java/duke/storage/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public Storage(String filePath) {
* @return Task List
*/
public TaskList load() {
assert taskFile.exists() : "there is no such file";
try {
taskFile.getParentFile().mkdirs();
if (!taskFile.createNewFile()) {
Scanner fileReader = new Scanner(taskFile);
this.taskList = loadList(this.taskList, fileReader);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/duke/ui/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static String printTaskDeleted(Task task, int numTasks) {
* @return string that confirms the update of the task.
*/
public static String printTaskUpdated(Task task) {
return "Your task has been updated!\n" + task;
return "Your task has been updated!\n " + task;
}

/**
Expand Down

0 comments on commit cafd45e

Please sign in to comment.