summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-10-24 15:59:13 +0200
committerGitHub <noreply@github.com>2017-10-24 15:59:13 +0200
commit306d4e1d40ce076b715a5f0a87e743189da775e6 (patch)
tree4d4737ea9c757e7e9018b9d5a74534bf41b4196b /apps/files_trashbin
parentf8e4d0d564a71856dcb0e223f0dd279209383fd1 (diff)
parent5987099d2a7801d89310dc9e829927a67c1af9d2 (diff)
downloadnextcloud-server-306d4e1d40ce076b715a5f0a87e743189da775e6.tar.gz
nextcloud-server-306d4e1d40ce076b715a5f0a87e743189da775e6.zip
Merge pull request #6922 from nextcloud/unneeded-isEnabled-check
Remove unneeded check if app is enabled
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/Hooks.php6
1 files changed, 2 insertions, 4 deletions
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) {