diff options
author | Seungmin Kim <8457324+ehfd@users.noreply.github.com> | 2024-12-02 03:12:13 +0900 |
---|---|---|
committer | Seungmin Kim <8457324+ehfd@users.noreply.github.com> | 2024-12-17 09:36:04 +0900 |
commit | 5a457b8da5f2c8687b1a97a5f88769c666cd05e6 (patch) | |
tree | 3d10f06ac414bbf5cf175898ea771d9762ba9e05 /core | |
parent | 041eca9b27778ae639e8b11825991f07b3ff4bc4 (diff) | |
download | nextcloud-server-5a457b8da5f2c8687b1a97a5f88769c666cd05e6.tar.gz nextcloud-server-5a457b8da5f2c8687b1a97a5f88769c666cd05e6.zip |
fix(occ): Fix linting issues
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Integrity/CheckApp.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php index ce658ec16da..b5706b2b24e 100644 --- a/core/Command/Integrity/CheckApp.php +++ b/core/Command/Integrity/CheckApp.php @@ -47,7 +47,10 @@ class CheckApp extends Base { */ protected function execute(InputInterface $input, OutputInterface $output): int { $appid = $input->getArgument('appid'); - $path = (string)$input->getOption('path') ?? $this->appLocator->getAppPath($appid); + $path = (string)$input->getOption('path'); + if ($path === '') { + $path = $this->appLocator->getAppPath($appid); + } if ($this->fileAccessHelper->file_exists($path . '/appinfo/signature.json')) { // Only verify if the application explicitly ships a signature.json file $result = $this->checker->verifyAppSignature($appid, $path, true); |