diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2022-02-21 08:17:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 08:17:20 +0000 |
commit | 8c685067611d829e5fb8eeaaba48508d15cd4dde (patch) | |
tree | a1ddcf1469d563d26d5c23afe8a58fecb3dad0c4 /user/anime | |
parent | dbd642c32b1d2075cc5d0d00e29433753b742d13 (diff) | |
parent | 108f06aedec8834a314ed884f2795758a82fdb68 (diff) |
Merge pull request #5 from MikunoNaka/offset-limit-fix
Removed any max limit for offset argument, since MAL doesn't even support that
Diffstat (limited to 'user/anime')
-rw-r--r-- | user/anime/animelist.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/user/anime/animelist.go b/user/anime/animelist.go index 01e0a0e..6516184 100644 --- a/user/anime/animelist.go +++ b/user/anime/animelist.go @@ -39,9 +39,10 @@ func (c Client)DeleteAnime(id int) string { // Get authenticated user's anime list func (c Client) GetAnimeList(user, status, sort string, limit, offset int) (a.AnimeList, error){ var userAnimeList a.AnimeList - // error handling for limit and offset - limitsErr := e.LimitsErrHandler(limit, offset, maxListLimit) - if limitsErr != nil { return userAnimeList, limitsErr + // error handling for limit + limitErr := e.LimitErrHandler(limit, maxListLimit) + if limitErr != nil { + return userAnimeList, limitErr } // checks if valid sort is specified |