From 0e2aee2be6c34ea428f884e61887534f67e0bcbe Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 28 Oct 2016 12:36:44 +0200 Subject: Replace with exception instead of boolean return value Signed-off-by: Lukas Reschke --- lib/private/legacy/app.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'lib/private/legacy') 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)) { -- cgit v1.2.3