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>
pull/39695/head
Faraz Samapoor 3 years ago committed by GitHub
parent 90652fd30f
commit 0273b96eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files_versions/lib/Command/CleanUp.php
  2. 1
      apps/files_versions/lib/Command/Expire.php

@ -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…
Cancel
Save