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()