fix: Remove unneeded code

errors.Join(errs...) ignores nil errors and returns nil if there are not errors.
This commit is contained in:
Ralf Haferkamp
2024-02-28 16:22:06 +01:00
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