mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Apply suggestions from code review
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
This commit is contained in:
parent
90652fd30f
commit
0273b96eef
2 changed files with 1 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ class CleanUp extends Command {
|
|||
/**
|
||||
* delete versions for the given user
|
||||
*/
|
||||
protected function deleteVersions(string $user, string $path = null): void {
|
||||
protected function deleteVersions(string $user, ?string $path = null): void {
|
||||
\OC_Util::tearDownFS();
|
||||
\OC_Util::setupFS($user);
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ class Expire implements ICommand {
|
|||
// In case of external storage and session credentials, the expiration
|
||||
// fails because the command does not have those credentials
|
||||
|
||||
/** @var LoggerInterface $logger */
|
||||
$logger = \OC::$server->get(LoggerInterface::class);
|
||||
$logger->warning($e->getMessage(), [
|
||||
'exception' => $e,
|
||||
|
|
|
|||
Loading…
Reference in a new issue