From 9a765523c05c2e62222ccb800133c9c9775399a3 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 27 Sep 2023 15:24:05 +0300 Subject: [PATCH] A bit cleaning logic --- filters.inc.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/filters.inc.php b/filters.inc.php index ce645bc..64c59cd 100644 --- a/filters.inc.php +++ b/filters.inc.php @@ -92,10 +92,6 @@ function flt_class($val, $name, $struct, $args) if($conf_class != $args[0] && !is_subclass_of($conf_class, $args[0])) throw new Exception($val.". Config class is \"".$conf_class."\". Must be \"".$args[0]."\" or it's child"); - else - return $val; - - throw new Exception($val.". Config class is not found in '$conf_path'"); } return $val;