]> Cypherpunks repositories - gostls13.git/commitdiff
gofmt: remove unneeded call to os.Exit
authorFrancesc Campoy <campoy@golang.org>
Mon, 11 Jul 2016 18:31:52 +0000 (12:31 -0600)
committerFrancesc Campoy Flores <campoy@golang.org>
Mon, 11 Jul 2016 18:37:12 +0000 (18:37 +0000)
PrintDefaults already calls os.Exit(2).

Change-Id: I0d783a6476f42b6157853cdb34ba69618e3f3fcb
Reviewed-on: https://go-review.googlesource.com/24844
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/gofmt/gofmt.go

index b10b804fd2cb23a3675d41f5c3c31138cdfb76cf..f29b6cb83d995695b9c606c64716553e51bc8e4a 100644 (file)
@@ -55,7 +55,6 @@ func report(err error) {
 func usage() {
        fmt.Fprintf(os.Stderr, "usage: gofmt [flags] [path ...]\n")
        flag.PrintDefaults()
-       os.Exit(2)
 }
 
 func initParserMode() {