Skip to content

Remove unused Vets object from VetController showVetList method#2336

Open
marcosgdz03 wants to merge 1 commit intospring-projects:mainfrom
marcosgdz03:fix/remove-unused-vets-object
Open

Remove unused Vets object from VetController showVetList method#2336
marcosgdz03 wants to merge 1 commit intospring-projects:mainfrom
marcosgdz03:fix/remove-unused-vets-object

Conversation

@marcosgdz03
Copy link
Copy Markdown

🐛 Fix unused Vets object in VetController

Closes #2333


📌 Description

This PR removes an unused Vets object from the showVetList method in VetController.

Previously, a Vets instance was created and populated but never used or added to the model:

Vets vets = new Vets();
Page<Vet> paginated = findPaginated(page);
vets.getVetList().addAll(paginated.toList());
return addPaginationModel(page, paginated, model);

Signed-off-by: Marcos <marcgimdi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Vets object created but never added to model in VetController#showVetList

1 participant