Skip to content

Commit

Permalink
Update TypePredicate.java
Browse files Browse the repository at this point in the history
Update TypePredicate.java to use isClient method.

This changes is made to maintain consistency.
  • Loading branch information
GERARDJM018 committed Mar 17, 2024
1 parent 4f7b7b9 commit dd2edab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/model/person/TypePredicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public TypePredicate(String type) {
@Override
public boolean test(Person person) {
if (type.equals("housekeeper")) {
return person instanceof Housekeeper;
return !person.isClient();
} else if (type.equals("client")) {
return person instanceof Client;
return person.isClient();
} else {
return false;
}
Expand Down

0 comments on commit dd2edab

Please sign in to comment.