mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 04:40:05 -06:00
fix: Remove unneeded code
errors.Join(errs...) ignores nil errors and returns nil if there are not errors. (cherry picked from commit f5a282c13e4245fb29e7e7217889878a4efb99ce)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user