Skip to content

Commit

Permalink
handle friend names case-insensitively
Browse files Browse the repository at this point in the history
  • Loading branch information
RacoonDog authored and Wide-Cat committed Jun 24, 2024
1 parent 0ce909c commit 19c8f7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public boolean remove(Friend friend) {

public Friend get(String name) {
for (Friend friend : friends) {
if (friend.name.equals(name)) {
if (friend.name.equalsIgnoreCase(name)) {
return friend;
}
}
Expand Down

0 comments on commit 19c8f7e

Please sign in to comment.