mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Simplify coverage comment
This commit is contained in:
parent
eb440742eb
commit
b57909f8cb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user