Skip to content

Commit

Permalink
Merge pull request #123 from smallstep/max/superflous-else
Browse files Browse the repository at this point in the history
Fix linter warning
  • Loading branch information
dopey authored Dec 4, 2023
2 parents 792a687 + 499e393 commit bc77666
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cmd/step-sds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,12 @@ func panicHandler() {
fmt.Fprintf(os.Stderr, "%s\n", step.Version())
fmt.Fprintf(os.Stderr, "Release Date: %s\n\n", step.ReleaseDate())
panic(r)
} else {
fmt.Fprintln(os.Stderr, "Something unexpected happened.")
fmt.Fprintln(os.Stderr, "If you want to help us debug the problem, please run:")
fmt.Fprintf(os.Stderr, "STEPDEBUG=1 %s\n", strings.Join(os.Args, " "))
fmt.Fprintln(os.Stderr, "and send the output to [email protected]")
os.Exit(2)
}
fmt.Fprintln(os.Stderr, "Something unexpected happened.")
fmt.Fprintln(os.Stderr, "If you want to help us debug the problem, please run:")
fmt.Fprintf(os.Stderr, "STEPDEBUG=1 %s\n", strings.Join(os.Args, " "))
fmt.Fprintln(os.Stderr, "and send the output to [email protected]")
os.Exit(2)
}
}

Expand Down

0 comments on commit bc77666

Please sign in to comment.