mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
Remove unnecessary model change
This commit is contained in:
parent
18266fec8b
commit
d11d6e8e40
1 changed files with 0 additions and 1 deletions
|
@ -111,7 +111,6 @@ class OwnerController {
|
|||
}
|
||||
|
||||
private String addPaginationModel(int page, Model model, Page<Owner> paginated) {
|
||||
model.addAttribute("listOwners", paginated);
|
||||
List<Owner> listOwners = paginated.getContent();
|
||||
model.addAttribute("currentPage", page);
|
||||
model.addAttribute("totalPages", paginated.getTotalPages());
|
||||
|
|
Loading…
Reference in a new issue