Skip to content

Commit

Permalink
chore: updated parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Apr 3, 2021
1 parent be13774 commit a80d0bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions octopusdeploy/artifact_service.go
Expand Up @@ -99,13 +99,13 @@ func (s artifactService) GetByID(id string) (*Artifact, error) {
}

// Update modifies an Artifact based on the one provided as input.
func (s artifactService) Update(resource Artifact) (*Artifact, error) {
path, err := getUpdatePath(s, &resource)
func (s artifactService) Update(artifact Artifact) (*Artifact, error) {
path, err := getUpdatePath(s, &artifact)
if err != nil {
return nil, err
}

resp, err := apiUpdate(s.getClient(), resource, new(Artifact), path)
resp, err := apiUpdate(s.getClient(), artifact, new(Artifact), path)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a80d0bf

Please sign in to comment.