Minor: Remove some unreachable code.

trigger_error() should stop execution when the error type is E_USER_ERROR.
This commit is contained in:
Yahnis Elsts 2022-10-09 18:52:41 +03:00
parent 2b97a8f712
commit d86f4f4b94
1 changed files with 0 additions and 2 deletions

View File

@ -114,7 +114,6 @@ if ( !class_exists(PucFactory::class, false) ):
),
E_USER_ERROR
);
return null;
}
if ( !isset($apiClass) ) {
@ -129,7 +128,6 @@ if ( !class_exists(PucFactory::class, false) ):
htmlentities(self::$latestCompatibleVersion),
htmlentities($service)
), E_USER_ERROR);
return null;
}
return new $checkerClass(