From 0c872e02b2c822e3397515ec324051ff540f0cd5 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 20 Dec 2022 14:22:11 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-7-stable-ee --- app/controllers/concerns/paginated_collection.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/controllers/concerns/paginated_collection.rb') diff --git a/app/controllers/concerns/paginated_collection.rb b/app/controllers/concerns/paginated_collection.rb index fcee4493314..94a52dd0f89 100644 --- a/app/controllers/concerns/paginated_collection.rb +++ b/app/controllers/concerns/paginated_collection.rb @@ -10,9 +10,7 @@ module PaginatedCollection out_of_range = collection.current_page > total_pages - if out_of_range - redirect_to(url_for(safe_params.merge(page: total_pages, only_path: true))) - end + redirect_to(url_for(safe_params.merge(page: total_pages, only_path: true))) if out_of_range out_of_range end -- cgit v1.2.3