API: fix unlimited pagination error

This commit is contained in:
mavolin 2020-05-23 01:14:11 +02:00 committed by diamondburned
parent e4b43c0a83
commit 7b52582c93
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func (c *Client) MembersAfter(
mems = append(mems, m...)
// There aren't any to fetch, even if this is less than limit.
if len(mems) < hardLimit {
if len(m) < hardLimit {
break
}