Simplify coverage comment

This commit is contained in:
John Paul E. Balandan, CPA 2022-09-02 09:33:28 +08:00
parent eb440742eb
commit b57909f8cb
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610

View File

@ -945,11 +945,9 @@ class CodeIgniter
$this->response->setStatusCode($e->getCode());
if (ENVIRONMENT !== 'testing') {
// @codeCoverageIgnoreStart
if (ob_get_level() > 0) {
ob_end_flush();
ob_end_flush(); // @codeCoverageIgnore
}
// @codeCoverageIgnoreEnd
}
// When testing, one is for phpunit, another is for test case.
elseif (ob_get_level() > 2) {