Fix var typo
This commit is contained in:
parent
16a8dd9681
commit
73e8188564
1 changed files with 3 additions and 3 deletions
|
@ -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:], "")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue