Skip to content

Commit

Permalink
History: Separate the String line and complete
Browse files Browse the repository at this point in the history
Follow Code Quality
  • Loading branch information
WinstonJin committed Sep 18, 2024
1 parent b6b42d0 commit 31371d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/windebot/History.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public static ArrayList<Task> 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) {
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/windebot/WindeTasks.txt

This file was deleted.

0 comments on commit 31371d0

Please sign in to comment.