Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
refactor: name variable appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 5, 2019
1 parent 9e31505 commit 6f17229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) {
noLocalhost, _ := cmd.Flags().GetBool("no-localhost")
if noLocalhost {
noLocalhostFlag, _ := cmd.Flags().GetBool("no-localhost")
if noLocalhostFlag {
oauth.LoginWithoutLocalhost()
} else {
oauth.LoginWithLocalhost()
Expand Down

0 comments on commit 6f17229

Please sign in to comment.