Skip to content

Commit 5ba9ece

Browse files
Merge pull request #48800 from GreyXor/master
fix: add eol in dav command and use success const as return code
2 parents c1b3f6a + 94e1e8f commit 5ba9ece

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/dav/lib/Command/FixCalendarSyncCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
4343
$user = $this->userManager->get($userArg);
4444
if ($user === null) {
4545
$output->writeln("<error>User $userArg does not exist</error>");
46-
return 1;
46+
return self::FAILURE;
4747
}
4848

4949
$this->fixUserCalendars($user);
@@ -54,7 +54,8 @@ public function execute(InputInterface $input, OutputInterface $output): int {
5454
});
5555
$progress->finish();
5656
}
57-
return 0;
57+
$output->writeln('');
58+
return self::SUCCESS;
5859
}
5960

6061
private function fixUserCalendars(IUser $user, ?ProgressBar $progress = null): void {

0 commit comments

Comments
 (0)