Skip to content

Commit

Permalink
A-CodeQuality
Browse files Browse the repository at this point in the history
  • Loading branch information
LimAiLin committed Sep 15, 2022
1 parent f9ac644 commit 8a293b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/duke/command/MarkCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public class MarkCommand extends Command {
private final String[] STR;
private final boolean MARK;
private final boolean IS_MARK;

/**
* Creates a new MarkCommand object.
Expand All @@ -23,7 +23,7 @@ public class MarkCommand extends Command {
*/
public MarkCommand(String[] str, boolean mark) {
this.STR = str;
this.MARK = mark;
this.IS_MARK = mark;
}

/**
Expand Down Expand Up @@ -51,7 +51,7 @@ public String execute(TaskList tasks, Ui ui, Storage storage) throws DukeExcepti
}

myTask = tasks.getTask(index);
if (MARK) {
if (IS_MARK) {
myTask.markAsDone();
storage.writeFile(tasks);
return ui.complete(myTask);
Expand Down

0 comments on commit 8a293b3

Please sign in to comment.