If pages are empty, assume we are on last

This commit is contained in:
bryanl 2014-10-16 09:35:23 -04:00
parent 1c064ed4c9
commit b335d2a1ba
1 changed files with 1 additions and 1 deletions

View File

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