From 433adc97524711764c2121e8a6200fcc2e7974b7 Mon Sep 17 00:00:00 2001 From: milarin Date: Tue, 17 Jan 2023 17:02:34 +0100 Subject: [PATCH] Revert "debug" This reverts commit 2819f54a35b022aec2a8098d03fc95a2e2c4e40c. --- anilist.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anilist.go b/anilist.go index bcb487d..09b1d9f 100644 --- a/anilist.go +++ b/anilist.go @@ -2,7 +2,6 @@ package logic import ( "context" - "fmt" "git.milar.in/milarin/anilist" "git.milar.in/milarin/channel" @@ -59,7 +58,7 @@ func SearchAnimeByTitle(title string) (anime *anilist.Media, err error) { anime = anilist.NewApi(token).GetMedia(context.Background(), anilist.MediaQuery{ Search: title, Type: anilist.MediaTypeAnime, - }, func(err error) { fmt.Println(err) }).First() + }, nil).First() if anime == nil { return nil, ErrAnimeNotFound.New(title)