diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2025-01-20 17:21:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-20 17:21:38 +0100 |
commit | 5ba9ece039573671bacc6cb39b9f038845548a5f (patch) | |
tree | 6463c66e9111b92f5a0f13f1095b315f7d718331 /apps/dav/lib | |
parent | c1b3f6a6172bd232a0d2d5bbbf0d750d5ced310a (diff) | |
parent | 94e1e8f9647426272b6366b0d283efb764f3ea63 (diff) | |
download | nextcloud-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.php | 5 |
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 { |