Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Fazzari <kyrofa@ubuntu.com>2018-02-25 18:08:59 +0300
committerKyle Fazzari <kyrofa@ubuntu.com>2018-02-25 18:08:59 +0300
commit8dcbea124ea91dc2a838ac16c0dc5e68dd384ab8 (patch)
tree8a1eea416d2066ade387d701d585a55101a8d4b2 /apps/theming/lib/Controller
parent25c89a6feb80ded179adf995eff8b0539673d287 (diff)
Remove null check
Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
Diffstat (limited to 'apps/theming/lib/Controller')
-rw-r--r--apps/theming/lib/Controller/ThemingController.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index f41b9062a11..e7865b90cf0 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -110,7 +110,7 @@ class ThemingController extends Controller {
IAppData $appData,
SCSSCacher $scssCacher,
IURLGenerator $urlGenerator,
- IAppManager $appManager = NULL
+ IAppManager $appManager
) {
parent::__construct($appName, $request);
@@ -123,12 +123,7 @@ class ThemingController extends Controller {
$this->appData = $appData;
$this->scssCacher = $scssCacher;
$this->urlGenerator = $urlGenerator;
-
- if (!is_null($appManager)) {
- $this->appManager = $appManager;
- } else {
- $this->appManager = \OC::$server->getAppManager();
- }
+ $this->appManager = $appManager;
}
/**