fixed strange indentation when anime not found
This commit is contained in:
parent
a025fcfba2
commit
b7bbd0ed40
@ -35,14 +35,15 @@ func HandleFile(fh *FileHandle) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintln(w, color.GreenString(parser.Identity))
|
|
||||||
|
|
||||||
anime, err := logic.SearchAnimeByTitle(parsedFile.OriginalAnimeTitle)
|
anime, err := logic.SearchAnimeByTitle(parsedFile.OriginalAnimeTitle)
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Fprintln(w, color.GreenString(parser.Identity))
|
||||||
|
|
||||||
parsedFile.Anime = anime
|
parsedFile.Anime = anime
|
||||||
HandleParsedFile(w, parsedFile)
|
HandleParsedFile(w, parsedFile)
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user