From 31371d0fa715beb2833c18a6f494f399bfcc3946 Mon Sep 17 00:00:00 2001 From: WindiStone Date: Wed, 18 Sep 2024 16:51:30 +0800 Subject: [PATCH] History: Separate the String line and complete Follow Code Quality --- src/main/java/windebot/History.java | 3 ++- src/main/java/windebot/WindeTasks.txt | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 src/main/java/windebot/WindeTasks.txt diff --git a/src/main/java/windebot/History.java b/src/main/java/windebot/History.java index 718339e0a7..25474e7752 100644 --- a/src/main/java/windebot/History.java +++ b/src/main/java/windebot/History.java @@ -59,7 +59,8 @@ public static ArrayList load() { } try { BufferedReader br = new BufferedReader(new FileReader(filePath)); - String line = br.readLine(), complete = "X"; + String line = br.readLine(); + String complete = "X"; DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm"); Task task; while (line != null) { diff --git a/src/main/java/windebot/WindeTasks.txt b/src/main/java/windebot/WindeTasks.txt deleted file mode 100644 index 73d761cc94..0000000000 --- a/src/main/java/windebot/WindeTasks.txt +++ /dev/null @@ -1,4 +0,0 @@ -E | X | project meeting | 06/08/2025 14:00 - 06/08/2025 16:00 -T | O | read book -D | X | Finish assignment | 15/09/2024 14:00 -D | O | submit assignment | 06/08/2025 14:00 \ No newline at end of file