Skip to content

Commit

Permalink
<delete>: remove redundant 'toLowerCase()' method and simplify pet lo…
Browse files Browse the repository at this point in the history
…okup logic.
  • Loading branch information
wickdynex committed Nov 5, 2024
1 parent ab1f54c commit 7ba3872
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ public Pet getPet(Integer id) {
* @return a pet if pet name is already in use
*/
public Pet getPet(String name, boolean ignoreNew) {
name = name.toLowerCase();
for (Pet pet : getPets()) {
String compName = pet.getName();
if (compName != null && compName.equalsIgnoreCase(name)) {
Expand Down

0 comments on commit 7ba3872

Please sign in to comment.