Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
  • Loading branch information
fsamapoor and come-nc authored Sep 21, 2023
1 parent 90652fd commit 0273b96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apps/files_versions/lib/Command/CleanUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
/**
* 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);

Expand Down
1 change: 0 additions & 1 deletion apps/files_versions/lib/Command/Expire.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function handle(): void {
// 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,
Expand Down

0 comments on commit 0273b96

Please sign in to comment.