From a9f71e378f26ff4dd81a1e4f0ae9e44162f85394 Mon Sep 17 00:00:00 2001
From: Alexander Matyushentsev <Alexander_Matyushentsev@intuit.com>
Date: Thu, 15 Nov 2018 08:57:31 -0800
Subject: [PATCH] Update getPagination method comment

---
 connector/github/github.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/connector/github/github.go b/connector/github/github.go
index 123e88ba..8399e8d2 100644
--- a/connector/github/github.go
+++ b/connector/github/github.go
@@ -503,10 +503,10 @@ func get(ctx context.Context, client *http.Client, apiURL string, v interface{})
 	return getPagination(apiURL, resp), nil
 }
 
-// getPagination checks the "Link" header field for "next" or "last" pagination
-// URLs, and returns true only if a "next" URL is found. The next pages' URL is
-// returned if a "next" URL is found. apiURL is returned if apiURL equals the
-// "last" URL or no "next" or "last" URL are found.
+// getPagination checks the "Link" header field for "next" or "last" pagination URLs,
+// and returns "next" page URL or empty string to indicate that there are no more pages.
+// Non empty next pages' URL is returned if both "last" and "next" URLs are found and next page
+// URL is not equal to last.
 //
 // https://developer.github.com/v3/#pagination
 func getPagination(apiURL string, resp *http.Response) string {
-- 
GitLab