Skip to content

Commit fb291f1

Browse files
committed
fix nil
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
1 parent 22ecda8 commit fb291f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/grpc/services/storageprovider/storageprovider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ func (s *service) RestoreRecycleItem(ctx context.Context, req *provider.RestoreR
839839

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

0 commit comments

Comments
 (0)