Skip to content

Commit

Permalink
fix(sharesstorageprovider): Remove unneeded code
Browse files Browse the repository at this point in the history
We're already using a State based filter in the ListReceivedShares request.
No need to manually check for that again.
  • Loading branch information
rhafer committed Mar 6, 2024
1 parent a1c4d78 commit 1daff38
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1daff38

Please sign in to comment.