Skip to content

Commit

Permalink
fix trash
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Jun 15, 2021
1 parent fb291f1 commit bc66e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/grpc/services/storageprovider/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ func (s *service) RestoreRecycleItem(ctx context.Context, req *provider.RestoreR
}

func (s *service) PurgeRecycle(ctx context.Context, req *provider.PurgeRecycleRequest) (*provider.PurgeRecycleResponse, error) {
// if a key was sent as opacque id purge only that item
if req.GetRef() != nil && req.GetRef().GetResourceId() != nil {
// if a key was sent as opaque id purge only that item
if req.GetRef().GetResourceId() != nil && req.GetRef().GetResourceId().OpaqueId != "" {
if err := s.storage.PurgeRecycleItem(ctx, req.GetRef().GetResourceId().OpaqueId); err != nil {
var st *rpc.Status
switch err.(type) {
Expand Down

0 comments on commit bc66e39

Please sign in to comment.