-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from smallstep/max/superflous-else
Fix linter warning
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
} | ||
} | ||
|
||
|