summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-28 12:36:44 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-31 17:17:46 +0100
commit0e2aee2be6c34ea428f884e61887534f67e0bcbe (patch)
treee8eaa45cd8faee7afd93655fda3d0de119259e94 /lib/private/legacy
parent01c566883ea9a9ce0f99c093b40cedad8dc21599 (diff)
downloadnextcloud-server-0e2aee2be6c34ea428f884e61887534f67e0bcbe.tar.gz
nextcloud-server-0e2aee2be6c34ea428f884e61887534f67e0bcbe.zip
Replace with exception instead of boolean return value
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/app.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 1db1ce74cdc..876eb98f293 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -345,7 +345,7 @@ class OC_App {
$isDownloaded = $installer->isDownloaded($appId);
if(!$isDownloaded) {
- $state = $installer->downloadApp(
+ $installer->downloadApp(
$appId,
new \OC\App\AppStore\Fetcher\AppFetcher(
\OC::$server->getAppDataDir('appstore'),
@@ -354,18 +354,8 @@ class OC_App {
$config
),
\OC::$server->getHTTPClientService(),
- \OC::$server->getTempManager(),
- \OC::$server->getLogger()
+ \OC::$server->getTempManager()
);
-
- if($state !== true) {
- throw new \Exception(
- sprintf(
- 'Could not download app with id: %s',
- $appId
- )
- );
- }
}
if (!Installer::isInstalled($appId)) {