Created
July 31, 2017 20:41
-
-
Save petergtz/d62a8b40b6799b8e10f12df6d7a7da96 to your computer and use it in GitHub Desktop.
Some Go code with a semantic error in the error handling
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
virtualGuestService, e := softlayerClient.GetSoftLayer_Virtual_Guest_Service() | |
if e != nil { | |
return cli.NewExitError(e.Error(), 1) | |
} | |
server := cliContext.GlobalString("server") | |
port := cliContext.GlobalInt("port") | |
if server == "" { | |
return cli.NewExitError(e.Error(), 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment