Skip to content

Commit

Permalink
Merge pull request #48800 from GreyXor/master
Browse files Browse the repository at this point in the history
fix: add eol in dav command and use success const as return code
  • Loading branch information
nickvergessen authored Jan 20, 2025
2 parents c1b3f6a + 94e1e8f commit 5ba9ece
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dav/lib/Command/FixCalendarSyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
$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);
Expand All @@ -54,7 +54,8 @@ public function execute(InputInterface $input, OutputInterface $output): int {
});
$progress->finish();
}
return 0;
$output->writeln('');
return self::SUCCESS;
}

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

0 comments on commit 5ba9ece

Please sign in to comment.