Skip to content
Permalink
Browse files

Fix go vet issue

  • Loading branch information...
Mongey committed Apr 25, 2018
1 parent 6f416ba commit 257020a95c415bdf8a167b6731d1fa43201c8268
Showing with 2 additions and 3 deletions.
  1. +2 −3 steps/step_authorize_github.go
@@ -38,8 +38,7 @@ func (*StepAuthorizeGithub) Run(state multistep.StateBag) multistep.StepAction {
fmt.Println(`
Your username and password will be used once to obtain a unique
authorization token from GitHub's API, which will be stored in
~/.gethubconfig.
`)
~/.gethubconfig.`)

// Asks the user for credentials, and then makes a request to the
// GitHub API to get an authorization token to store in ~/.getconfig
@@ -123,7 +122,7 @@ authorization token from GitHub's API, which will be stored in
"note":"gethub command line client",
"note_url": "https://github.com/pearkes/gethub"}`)

req, err := http.NewRequest("POST", host + "/authorizations", reqBody)
req, err := http.NewRequest("POST", host+"/authorizations", reqBody)

req.Header.Add("Content-Type", "application/json")
req.SetBasicAuth(username, password)

0 comments on commit 257020a

Please sign in to comment.
You can’t perform that action at this time.