aboutsummaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-24 21:40:43 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-24 21:40:43 +0530
commit314d9bf6cad4bebec431a217c23016680c56179b (patch)
treea08e45454724d84c3dab6f07cd04bf4bf37e87a9 /user
parente4f90575f920cbd429814dfc27a775c0666bf718 (diff)
moved DefaultListStatus back to each package seperately
Diffstat (limited to 'user')
-rw-r--r--user/anime/animelist.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/user/anime/animelist.go b/user/anime/animelist.go
index b27efc0..f9ddff5 100644
--- a/user/anime/animelist.go
+++ b/user/anime/animelist.go
@@ -73,13 +73,13 @@ func (c Client) GetAnimeList(user, status, sort string, limit, offset int) (a.An
data := c.requestHandler(endpoint, "GET")
json.Unmarshal([]byte(data), &animeListData)
- // set MyListStatus for each element and add it to array
+ // set ListStatus for each element and add it to array
var animes []a.Anime
for _, element := range animeListData.Data {
- a := element.Anime
- a.ListStatus = element.ListStatus
+ anime := element.Anime
+ anime.ListStatus = element.ListStatus
- animes = append(animes, a)
+ animes = append(animes, anime)
}
// finally create AnimeList