diff --git a/changelog/unreleased/minor-cleanup.md b/changelog/unreleased/minor-cleanup.md index 097b5a528ce..a83e1491941 100644 --- a/changelog/unreleased/minor-cleanup.md +++ b/changelog/unreleased/minor-cleanup.md @@ -1,6 +1,6 @@ Bugfix: minor cleanup - - The `chunk_folder` config option is unused - - Prevent a panic when looking up spaces +- The `chunk_folder` config option is unused +- Prevent a panic when looking up spaces https://github.com/cs3org/reva/pull/2668 diff --git a/internal/http/services/owncloud/ocdav/spacelookup/spacelookup.go b/internal/http/services/owncloud/ocdav/spacelookup/spacelookup.go index 0dbc0095198..50e4af77507 100644 --- a/internal/http/services/owncloud/ocdav/spacelookup/spacelookup.go +++ b/internal/http/services/owncloud/ocdav/spacelookup/spacelookup.go @@ -108,9 +108,6 @@ func LookUpStorageSpacesForPathWithChildren(ctx context.Context, client gateway. if err != nil { return nil, nil, err } - if lSSRes == nil { - return nil, &rpc.Status{Code: rpc.Code_CODE_INTERNAL, Message: "no error but result was nil"}, nil - } if lSSRes.Status.GetCode() != rpc.Code_CODE_OK { return nil, lSSRes.Status, err }