Consistently defer messages for jobs
This commit is contained in:
@ -37,6 +37,8 @@ func init() {
|
||||
|
||||
func main() {
|
||||
color.Yellow("Downloading anime images")
|
||||
|
||||
defer color.Green("Finished.")
|
||||
defer arn.Node.Close()
|
||||
|
||||
if from < 0 {
|
||||
@ -53,8 +55,6 @@ func main() {
|
||||
work(anime)
|
||||
}
|
||||
|
||||
color.Green("Finished downloading anime images.")
|
||||
|
||||
// Give file buffers some time, just to be safe
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
|
Reference in New Issue
Block a user