diff options
author | Kyle Fazzari <kyrofa@ubuntu.com> | 2018-02-25 07:08:59 -0800 |
---|---|---|
committer | Kyle Fazzari <kyrofa@ubuntu.com> | 2018-02-25 07:08:59 -0800 |
commit | 8dcbea124ea91dc2a838ac16c0dc5e68dd384ab8 (patch) | |
tree | 8a1eea416d2066ade387d701d585a55101a8d4b2 /apps | |
parent | 25c89a6feb80ded179adf995eff8b0539673d287 (diff) | |
download | nextcloud-server-8dcbea124ea91dc2a838ac16c0dc5e68dd384ab8.tar.gz nextcloud-server-8dcbea124ea91dc2a838ac16c0dc5e68dd384ab8.zip |
Remove null check
Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/lib/Controller/ThemingController.php | 9 |
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; } /** |