Skip to content

Commit

Permalink
return errors - block if failures occurr
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Jul 15, 2021
1 parent 227233b commit 052d4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ func (s *svc) Delete(ctx context.Context, req *provider.DeleteRequest) (*provide

sRes, err := s.ListReceivedShares(ctx, &collaboration.ListReceivedSharesRequest{})
if err != nil {
// deal with this
return nil, err
}

statRes, err := s.Stat(ctx, &provider.StatRequest{
Expand Down Expand Up @@ -901,7 +901,7 @@ func (s *svc) Delete(ctx context.Context, req *provider.DeleteRequest) (*provide

_, err := s.UpdateReceivedShare(ctx, r)
if err != nil {
// deal with this
return nil, err
}
}
}
Expand Down

0 comments on commit 052d4d9

Please sign in to comment.