Skip to content

Commit

Permalink
fix unused err objects
Browse files Browse the repository at this point in the history
  • Loading branch information
skyscrapr committed Dec 14, 2023
1 parent d60d29b commit 215a285
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloudability/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ func (e ContainersEndpoint) GetClusterConfig(id string) (string, error) {
func (e *ContainersEndpoint) NewCluster(clusterProvisioning *Cluster) (*Cluster, error) {
clusterProvisioningPayload := new(clusterPayload)
jsonCluster, err := json.Marshal(clusterProvisioning)
if err != nil {
return nil, err
}
err = json.Unmarshal(jsonCluster, clusterProvisioningPayload)
if err != nil {
return nil, err
}
var result v3Result[*Cluster]
err = e.post(e, "provisioning/", clusterProvisioningPayload, &result)
return result.Result, err
Expand Down

0 comments on commit 215a285

Please sign in to comment.