Fix Pagination variable from *int64 to int64

This commit is contained in:
178inaba 2017-05-07 01:36:25 +09:00
parent 1c0e37928e
commit f283f05671
5 changed files with 35 additions and 46 deletions

View file

@ -17,7 +17,7 @@ func cmdFollowers(c *cli.Context) error {
if err != nil {
return err
}
var maxID *int64
var maxID int64
var followers []*mastodon.Account
for {
pg := mastodon.Pagination{MaxID: maxID}
@ -26,7 +26,7 @@ func cmdFollowers(c *cli.Context) error {
return err
}
followers = append(followers, fs...)
if pg.MaxID == nil {
if pg.MaxID == 0 {
break
}
maxID = pg.MaxID