From 314d9bf6cad4bebec431a217c23016680c56179b Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 21:40:43 +0530 Subject: moved DefaultListStatus back to each package seperately --- user/anime/animelist.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'user') 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 -- cgit v1.2.3