From 8bb78ca569ec471fc86bebd985ce9f098643309e Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 15 Apr 2023 21:05:39 +0200 Subject: [PATCH] do not throw Cleaner error --- src/Cleaners.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Cleaners.php b/src/Cleaners.php index 36b211b..b08fb4a 100644 --- a/src/Cleaners.php +++ b/src/Cleaners.php @@ -90,14 +90,6 @@ class Cleaners # --BEHAVIOR-- UninstallerBeforeAction: string, string, string dcCore::app()->callBehavior('UninstallerBeforeAction', $id, $action, $ns); - $ret = $this->cleaners[$id]->execute($action, $ns); - - if ($ret === false) { - $msg = $this->cleaners[$id]->actions[$action]->error; - - throw new Exception($msg ?: __('Unknown error')); - } - - return true; + return $this->cleaners[$id]->execute($action, $ns); } }