From b7bbd0ed409da7f265289f26bfa5f0f5b3544043 Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 23 Jan 2023 21:48:49 +0100 Subject: [PATCH] fixed strange indentation when anime not found --- handle_file.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/handle_file.go b/handle_file.go index b144dfe..e1ac820 100644 --- a/handle_file.go +++ b/handle_file.go @@ -35,14 +35,15 @@ func HandleFile(fh *FileHandle) { continue } - fmt.Fprintln(w, color.GreenString(parser.Identity)) - anime, err := logic.SearchAnimeByTitle(parsedFile.OriginalAnimeTitle) if err != nil { - fmt.Fprint(w, color.RedString("\tanime not found: '%s'\n", parsedFile.OriginalAnimeTitle)) + fmt.Fprintln(w, color.RedString(parser.Identity)) + fmt.Fprintln(w, color.RedString("\tanime not found: '%s'", parsedFile.OriginalAnimeTitle)) continue } + fmt.Fprintln(w, color.GreenString(parser.Identity)) + parsedFile.Anime = anime HandleParsedFile(w, parsedFile) break