Skip to content

Commit

Permalink
Modify tasklist
Browse files Browse the repository at this point in the history
  • Loading branch information
yuming7144 committed Sep 15, 2020
1 parent 8bdce4f commit e58e660
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/data/duke.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
D 1 return book Sep 22 2020
T 0 write userguide
E 1 team meeting Sep 15 2020
T 1 shopping #clothes
T 0 write email #to Alice
Expand Down
1 change: 0 additions & 1 deletion src/main/java/duke/task/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public String deleteTask(int n) {
assert n <= taskList.size();
String message = "Noted. I've removed this task:\n";
Task task = taskList.get(n - 1);
System.out.println(INDENTATION + " " + task.toString());
taskList.remove(n - 1);
message += INDENTATION + task.toString() + "\n";
message += "Now you have " + taskList.size() + " tasks in the list.\n";
Expand Down

0 comments on commit e58e660

Please sign in to comment.