Skip to content

Commit

Permalink
change the name of a boolean variable to isXXX.
Browse files Browse the repository at this point in the history
  • Loading branch information
YaxinJoy committed Feb 24, 2022
1 parent 396f769 commit 70b54da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/TaskManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public void manageCommand(ArrayList<String> command){
break;
case "UNMARK":
case "MARK":
boolean mark = command.get(0).equals("MARK")?true:false;
boolean isMark = command.get(0).equals("MARK")?true:false;
int indexMark = Integer.parseInt(command.get(1));
changeTaskStatus(indexMark, mark);
changeTaskStatus(indexMark, isMark);
break;
case "DELETE":
int indexDelete = Integer.parseInt(command.get(1));
Expand Down

0 comments on commit 70b54da

Please sign in to comment.