Skip to content

Commit

Permalink
fix nil
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Jun 15, 2021
1 parent 22ecda8 commit fb291f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/grpc/services/storageprovider/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ 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().OpaqueId != "" {
if req.GetRef() != nil && req.GetRef().GetResourceId() != nil {
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 fb291f1

Please sign in to comment.