Fixed errcheck linter complaints

This commit is contained in:
2019-06-05 15:45:54 +09:00
parent 190a85fe08
commit 940e949a30
15 changed files with 112 additions and 33 deletions

View File

@ -46,7 +46,12 @@ func main() {
}
// Refresh
anime.RefreshEpisodes()
err := anime.RefreshEpisodes()
if err != nil {
color.Red(err.Error())
continue
}
// Ok
color.Green("Found %d episodes for anime %s (Kitsu: %s)", len(anime.Episodes().Items), anime.ID, kitsuID)