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
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user