mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #48800 from GreyXor/master
fix: add eol in dav command and use success const as return code
This commit is contained in:
commit
5ba9ece039
1 changed files with 3 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ class FixCalendarSyncCommand extends Command {
|
|||
$user = $this->userManager->get($userArg);
|
||||
if ($user === null) {
|
||||
$output->writeln("<error>User $userArg does not exist</error>");
|
||||
return 1;
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
$this->fixUserCalendars($user);
|
||||
|
|
@ -54,7 +54,8 @@ class FixCalendarSyncCommand extends Command {
|
|||
});
|
||||
$progress->finish();
|
||||
}
|
||||
return 0;
|
||||
$output->writeln('');
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
private function fixUserCalendars(IUser $user, ?ProgressBar $progress = null): void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue