Skip to content

Commit 5fc0005

Browse files
committed
simplify exit after version printed
just return from the main function, no need to explicitly os.exit
1 parent 080a32e commit 5fc0005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loggly.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func main() {
172172

173173
if *versionQuery {
174174
fmt.Println(version)
175-
os.Exit(0)
175+
return
176176
}
177177

178178
assert(*account != "", "-account required")

0 commit comments

Comments
 (0)