Skip to content

Commit 7f0b8c0

Browse files
Artyom Babiyfionera
Artyom Babiy
authored andcommitted
Return instead of explicit exit
1 parent f022ec4 commit 7f0b8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func main() {
6767

6868
if validateConfig {
6969
globalLogger.Info().Msg("Configuration file is valid")
70-
os.Exit(0)
70+
return
7171
}
7272

7373
ctx, cancelFunc := context.WithCancel(context.Background())

0 commit comments

Comments
 (0)