Skip to content

Commit

Permalink
Removal of Unnecessary Operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ralikio committed Oct 30, 2024
1 parent 9244517 commit 1590e9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/broker/bind_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func (b *UnbindEndpoint) Unbind(ctx context.Context, instanceID, bindingID strin
instance, err := b.instancesStorage.GetByID(instanceID)
switch {
case dberr.IsNotFound(err):
err = b.bindingsStorage.Delete(instanceID, bindingID)
if err != nil {
b.log.Errorf("Unbind error during removal of db entity: %v", err)
return domain.UnbindSpec{}, apiresponses.NewFailureResponse(fmt.Errorf("failed to delete binding for binding %s and not existing instance %s: %v", bindingID, instanceID, err), http.StatusInternalServerError, fmt.Sprintf("failed to delete resources for binding %s and not existing instance %s: %v", bindingID, instanceID, err))
Expand Down

0 comments on commit 1590e9e

Please sign in to comment.