remove useless assignment

This commit is contained in:
simon lehericey 2023-10-17 17:39:28 +02:00 committed by Paul Chavard
parent dbe67aaf18
commit 1bb4d3cf17

View file

@ -106,11 +106,9 @@ module Connections
def compute_page_info(limit:, before: nil, after: nil, first: nil, last: nil) def compute_page_info(limit:, before: nil, after: nil, first: nil, last: nil)
if @deprecated_order == :desc if @deprecated_order == :desc
if last.present? if last.present?
first = [last, max_page_size].min
last = nil last = nil
else else
last = [first || default_page_size].min last = [first || default_page_size].min
first = nil
end end
end end