Skip to content

Commit

Permalink
drop shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony O'Brien committed Feb 22, 2017
1 parent f8debb3 commit dbff856
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ func checkForErrorsAndExit(err error) {
logger.Println(err)
}
// exit with the underlying error code
var retCode int
retCode, err := shell.GetExitCode(err)
if err != nil {
retCode = 1
exitCode, exitCodeErr := shell.GetExitCode(err)
if exitCodeErr != nil {
exitCode = 1
}
os.Exit(retCode)
os.Exit(exitCode)
}

}

0 comments on commit dbff856

Please sign in to comment.