mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-22 19:19:18 -05:00
fix: Remove unneeded code
errors.Join(errs...) ignores nil errors and returns nil if there are not errors.
This commit is contained in:
committed by
Ralf Haferkamp
parent
1ceba732c2
commit
1a8b0ea846
@@ -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