Skip to content

Commit

Permalink
Replaced pointer for update
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Nov 18, 2020
1 parent e5dfb75 commit c3c3d43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -64,8 +64,7 @@ func AddEnvironmentConditionToStepExample() {
}
}

_, err = client.DeploymentProcesses.Update(*deploymentProcess)

_, err = client.DeploymentProcesses.Update(deploymentProcess)
if err != nil {
// TODO: handle error
}
Expand Down
3 changes: 1 addition & 2 deletions examples/deployment_processes/create_script_step.go
Expand Up @@ -61,8 +61,7 @@ func CreateScriptStepExample() {
deploymentProcess.Steps = append(deploymentProcess.Steps, *newStep)

// Update process
_, err = client.DeploymentProcesses.Update(*deploymentProcess)

_, err = client.DeploymentProcesses.Update(deploymentProcess)
if err != nil {
// TODO: handle error
}
Expand Down

0 comments on commit c3c3d43

Please sign in to comment.