show stats only if process images

This commit is contained in:
Celogeek 2023-04-30 00:58:26 +02:00
parent 3858583728
commit 141aeae624
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -20,7 +20,6 @@ import (
func main() {
cmd := converter.New()
defer cmd.Stats()
if err := cmd.LoadConfig(); err != nil {
cmd.Fatal(err)
}
@ -139,5 +138,7 @@ $ go install github.com/celogeek/go-comic-converter/v%d@%s
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
if !cmd.Options.Dry {
cmd.Stats()
}
}