Skip to content

Commit

Permalink
Add message for no tags found
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjieee committed Apr 11, 2024
1 parent f04aa7c commit ccbd146
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/seedu/address/model/tag/TagList.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public String listTags() {
sb.append(tag.tagName);
sb.append("\n");
}
return sb.toString();

if (sb.toString().isEmpty()) {
return "No tags found.";
} else {
return sb.toString();
}
}
}

0 comments on commit ccbd146

Please sign in to comment.