From b0daa30c34c5ac4fc2360189713d9e56a402ce25 Mon Sep 17 00:00:00 2001 From: Austin Date: Thu, 17 Oct 2019 19:08:28 -0700 Subject: [PATCH] update isLast to check p.Next --- links.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/links.go b/links.go index 2098441..6f350bf 100644 --- a/links.go +++ b/links.go @@ -59,7 +59,7 @@ func (l *Links) IsLastPage() bool { } func (p *Pages) isLast() bool { - return p.Last == "" + return p.Next == "" } func pageForURL(urlText string) (int, error) {