Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/paginator.rb')
-rw-r--r--lib/bitbucket/paginator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/paginator.rb b/lib/bitbucket/paginator.rb
index d0e23007ff8..37f12328447 100644
--- a/lib/bitbucket/paginator.rb
+++ b/lib/bitbucket/paginator.rb
@@ -26,12 +26,12 @@ module Bitbucket
page.nil? || page.next?
end
- def page_url
+ def next_url
page.nil? ? url : page.next
end
def fetch_next_page
- parsed_response = connection.get(page_url)
+ parsed_response = connection.get(next_url)
Page.new(parsed_response, type)
end
end