From b335d2a1ba55139f1bf53421573140d4476bfb96 Mon Sep 17 00:00:00 2001 From: bryanl Date: Thu, 16 Oct 2014 09:35:23 -0400 Subject: [PATCH] If pages are empty, assume we are on last --- links.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/links.go b/links.go index fb220b8..64db34c 100644 --- a/links.go +++ b/links.go @@ -51,7 +51,7 @@ func (p *Pages) current() (int, error) { // IsLastPage returns true if the current page is the last func (l *Links) IsLastPage() bool { - if l == nil { + if l.Pages == nil { return true } return l.Pages.isLast()