diff --git a/services/graph/pkg/service/v0/api_drives_drive_item.go b/services/graph/pkg/service/v0/api_drives_drive_item.go index 255e3b9990..dd1253622a 100644 --- a/services/graph/pkg/service/v0/api_drives_drive_item.go +++ b/services/graph/pkg/service/v0/api_drives_drive_item.go @@ -118,13 +118,7 @@ func (s DrivesDriveItemService) UnmountShare(ctx context.Context, resourceID sto } } - // We call it a success if all shares could successfully be rejected, otherwise - // we return an error - if len(errs) != 0 { - return errors.Join(errs...) - } - - return nil + return errors.Join(errs...) } // MountShare mounts a share