aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2025-01-20 17:21:38 +0100
committerGitHub <noreply@github.com>2025-01-20 17:21:38 +0100
commit5ba9ece039573671bacc6cb39b9f038845548a5f (patch)
tree6463c66e9111b92f5a0f13f1095b315f7d718331 /apps/dav/lib
parentc1b3f6a6172bd232a0d2d5bbbf0d750d5ced310a (diff)
parent94e1e8f9647426272b6366b0d283efb764f3ea63 (diff)
downloadnextcloud-server-5ba9ece039573671bacc6cb39b9f038845548a5f.tar.gz
nextcloud-server-5ba9ece039573671bacc6cb39b9f038845548a5f.zip
Merge pull request #48800 from GreyXor/master
fix: add eol in dav command and use success const as return code
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Command/FixCalendarSyncCommand.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/lib/Command/FixCalendarSyncCommand.php b/apps/dav/lib/Command/FixCalendarSyncCommand.php
index bb269c92e15..cb31355c10d 100644
--- a/apps/dav/lib/Command/FixCalendarSyncCommand.php
+++ b/apps/dav/lib/Command/FixCalendarSyncCommand.php
@@ -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 {