From 73e8188564f21318928df08efd73d8074cc24b06 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sun, 1 Mar 2020 02:43:54 +0100 Subject: [PATCH] Fix var typo --- cmd/standalone.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/standalone.go b/cmd/standalone.go index bb044c5..a38765d 100644 --- a/cmd/standalone.go +++ b/cmd/standalone.go @@ -40,10 +40,10 @@ func CreateJiraTicketStandaloneCmd() *cobra.Command { func getVarMap(vars []string) (map[string]string, error) { varMap := map[string]string{} - for _, var := range vars { - parts := strings.Split(var, "=") + for _, v := range vars { + parts := strings.Split(v, "=") if len(parts) < 2 { - return nil, fmt.Errorf("cannot parse var %s", var) + return nil, fmt.Errorf("cannot parse var %s", v) } varMap[parts[0]] = strings.Join(parts[1:], "") }