1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Remove unnecessary condition

This commit is contained in:
Jordi Boggiano
2020-12-10 14:56:28 +01:00
parent 31de09b174
commit 80644c65ed

View File

@@ -319,16 +319,14 @@ class Logger implements LoggerInterface, ResettableInterface
}
// once the record exist, send it to all handlers as long as the bubbling chain is not interrupted
if (null !== $record) {
try {
if (true === $handler->handle($record)) {
break;
}
} catch (Throwable $e) {
$this->handleException($e, $record);
return true;
try {
if (true === $handler->handle($record)) {
break;
}
} catch (Throwable $e) {
$this->handleException($e, $record);
return true;
}
}