Skip to content

Commit

Permalink
Fix code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
daryltay415 committed Mar 17, 2024
1 parent 1c5d068 commit 63537ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/seedu/duke/TravelActivityList.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public void listTravelActivities(){
taskCount++;
System.out.println(" " + taskCount +"." + task);
}
int final_task_count = noOfTasks;
assert final_task_count == taskCount : "Index out of bounds while listing activities";
int finalTaskCount = noOfTasks;
assert finalTaskCount == taskCount : "Index out of bounds while listing activities";
}

/**
Expand Down Expand Up @@ -88,8 +88,7 @@ public void searchKeyword (String taskName) {
}
if (temporaryArrayCounter == 0) {
System.out.println("Sorry I could not find what you are looking for.");
}
else {
} else {
System.out.println("Here are what you are looking for:");
for (int newIterator = 0; newIterator < temporaryArray.size(); newIterator += 1) {
System.out.println((newIterator + 1) + ". " + temporaryArray.get(newIterator).getPlan());
Expand Down

0 comments on commit 63537ea

Please sign in to comment.