From 1bb4d3cf174b73f575cee5b830447a6a1a38a181 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Tue, 17 Oct 2023 17:39:28 +0200 Subject: [PATCH] remove useless assignment --- app/graphql/connections/cursor_connection.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/graphql/connections/cursor_connection.rb b/app/graphql/connections/cursor_connection.rb index 2d4a24283..f71a11bf3 100644 --- a/app/graphql/connections/cursor_connection.rb +++ b/app/graphql/connections/cursor_connection.rb @@ -106,11 +106,9 @@ module Connections def compute_page_info(limit:, before: nil, after: nil, first: nil, last: nil) if @deprecated_order == :desc if last.present? - first = [last, max_page_size].min last = nil else last = [first || default_page_size].min - first = nil end end