From 1daff387c07da5c25620b45ecc199e02e442eb48 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 6 Mar 2024 11:11:33 +0100 Subject: [PATCH] fix(sharesstorageprovider): Remove unneeded code We're already using a State based filter in the ListReceivedShares request. No need to manually check for that again. --- .../services/sharesstorageprovider/sharesstorageprovider.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go index f2e738f4bc..7c5336a7a1 100644 --- a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go +++ b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go @@ -1078,10 +1078,6 @@ func (s *service) resolveAcceptedShare(ctx context.Context, ref *provider.Refere return nil, lsRes.Status, nil } for _, receivedShare := range lsRes.Shares { - // make sure to skip unaccepted shares - if receivedShare.State != collaboration.ShareState_SHARE_STATE_ACCEPTED { - continue - } if isMountPointForPath(receivedShare.MountPoint.Path, ref.Path) { return receivedShare, lsRes.Status, nil }