all repos — paprika @ 39dcd5ae478cf7795e4bdd5a919eaf608bd416a1

go rewrite of taigabot

Close r.Body
Anirudh Oppiliappan x@icyphox.sh
Tue, 16 Nov 2021 08:26:14 +0530
commit

39dcd5ae478cf7795e4bdd5a919eaf608bd416a1

parent

534766d447a1d7f759bce2dd4f6c9400117140a5

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M plugins/listenbrainz/nowplaying.goplugins/listenbrainz/nowplaying.go

@@ -35,6 +35,8 @@ return nil, fmt.Errorf("non-200 response from Listenbrainz")

} json.NewDecoder(r.Body).Decode(&li) + defer r.Body.Close() + return &li, err }