Skip to content

Commit

Permalink
refactor: remove unnecessary keywords from helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yildizmy committed Mar 22, 2023
1 parent f399cf7 commit 193c6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/java/com/github/yildizmy/model/Type.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void addPet(Pet pet) {
}

public void removePet(Pet pet) {
this.pets.remove(pet);
pets.remove(pet);
pet.setType(null);
}
}
2 changes: 1 addition & 1 deletion backend/src/main/java/com/github/yildizmy/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void addPet(Pet pet) {
}

public void removePet(Pet pet) {
this.pets.remove(pet);
pets.remove(pet);
pet.setUser(null);
}

Expand Down

0 comments on commit 193c6e1

Please sign in to comment.