remove superfluous conditional

This commit is contained in:
Sasha Anastasi
2025-02-20 14:17:15 +13:00
parent 99452cb4f3
commit b01dd8723e

View File

@@ -266,9 +266,7 @@ class outagelib {
// Used to test the try block in case of errors.
if (PHPUNIT_TEST && optional_param('auth_outage_break_code', false, PARAM_INT)) {
if (!isset($emptyvar)) {
throw new coding_exception('Empty variable "emptyvar" is empty');
}
throw new coding_exception('Exception triggered');
}
// Nothing preventing the injection.