From 5987099d2a7801d89310dc9e829927a67c1af9d2 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 23 Oct 2017 23:47:06 +0200 Subject: Remove unneeded check if app is enabled App code will not be executable if the app is not enabled, because the autoloader refuses to load that class. Signed-off-by: Morris Jobke --- apps/files_trashbin/lib/Hooks.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/files_trashbin') diff --git a/apps/files_trashbin/lib/Hooks.php b/apps/files_trashbin/lib/Hooks.php index eb585aa051c..036294cc144 100644 --- a/apps/files_trashbin/lib/Hooks.php +++ b/apps/files_trashbin/lib/Hooks.php @@ -39,10 +39,8 @@ class Hooks { * to remove the used space for the trash bin stored in the database */ public static function deleteUser_hook($params) { - if( \OCP\App::isEnabled('files_trashbin') ) { - $uid = $params['uid']; - Trashbin::deleteUser($uid); - } + $uid = $params['uid']; + Trashbin::deleteUser($uid); } public static function post_write_hook($params) { -- cgit v1.2.3