remove useless assignment
This commit is contained in:
parent
dbe67aaf18
commit
1bb4d3cf17
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue