Skip to content

Commit

Permalink
Remove unnecessary model change
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Sep 12, 2023
1 parent 18266fe commit d11d6e8
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ public String processFindForm(@RequestParam(defaultValue = "1") int page, Owner
}

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());
Expand Down

0 comments on commit d11d6e8

Please sign in to comment.