Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasZeissner committed Sep 19, 2024
1 parent 40363a3 commit fb27163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/service/namespace/resource_cosmo_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ func (r *NamespaceResource) Update(ctx context.Context, req resource.UpdateReque
return
}

err = r.client.RenameNamespace(ctx, namespace.Name, data.Name.String())
if err != nil {
utils.AddDiagnosticError(resp, ErrUpdatingNamespace, fmt.Sprintf("Could not update namespace: %s", err))
renameApiError := r.client.RenameNamespace(ctx, namespace.Name, data.Name.String())
if renameApiError != nil {
utils.AddDiagnosticError(resp, ErrUpdatingNamespace, fmt.Sprintf("Could not update namespace: %s", renameApiError))
return
}

Expand Down

0 comments on commit fb27163

Please sign in to comment.