Skip to content

Commit

Permalink
Refactor: Reduce nested conditionals to improve code quality
Browse files Browse the repository at this point in the history
- Simplified logic by refactoring deeply nested conditionals
- Enhanced readability and maintainability of the code
  • Loading branch information
JJtan2002 committed Sep 10, 2024
1 parent 15b4a2f commit 86781a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/echobot/task/Deadline.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Deadline extends Task {
*/
public Deadline(String description, String by) {
super(description);
this.by = parseDate(by); // Parse the string into a LocalDate
this.by = parseDate(by);
}

/**
Expand Down

0 comments on commit 86781a9

Please sign in to comment.