feat(cmd/joj3): no log on print version
This commit is contained in:
parent
e45277b876
commit
b6592e655d
|
@ -162,7 +162,7 @@ func main() {
|
||||||
slog.Error("main exit", "error", err)
|
slog.Error("main exit", "error", err)
|
||||||
exitCode = 1
|
exitCode = 1
|
||||||
}
|
}
|
||||||
if exitCode == 0 {
|
if !*printVersion && exitCode == 0 {
|
||||||
slog.Info("main exit", "status", "success")
|
slog.Info("main exit", "status", "success")
|
||||||
}
|
}
|
||||||
os.Exit(exitCode)
|
os.Exit(exitCode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user