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:
Joas Schilling 2025-01-20 17:21:38 +01:00 committed by GitHub
commit 5ba9ece039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {