From 6f17229745f0b46dd726df89c25089df11085809 Mon Sep 17 00:00:00 2001 From: Maina Wycliffe Date: Thu, 5 Dec 2019 20:30:19 +0300 Subject: [PATCH] refactor: name variable appropriately --- cmd/login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/login.go b/cmd/login.go index 8b44bd1..d87dbf0 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -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()