update isLast to check p.Next

This commit is contained in:
Austin 2019-10-17 19:08:28 -07:00
parent 97ac73b1d5
commit b0daa30c34
1 changed files with 1 additions and 1 deletions

View File

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