Skip to content

Commit

Permalink
bug: fixed the result.Operation variable prior to patchRepoVariable b…
Browse files Browse the repository at this point in the history
…eing called in the setVariable function.
  • Loading branch information
Dean Tate committed Feb 18, 2024
1 parent b07f955 commit a3601a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/variable/set/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func setVariable(client *api.Client, host string, opts setOptions) setResult {
return result
} else if errors.As(err, &postErr) && postErr.StatusCode == 409 {
// Server will return a 409 if variable already exists
result.Operation = createdOperation
result.Operation = updatedOperation
err = patchRepoVariable(client, opts.Repository, opts.Key, opts.Value)
}
}
Expand Down

0 comments on commit a3601a7

Please sign in to comment.