Skip to content

Commit 93a4bfb

Browse files
committed
remove unneccesary condition
1 parent c7965aa commit 93a4bfb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Helpers/Log.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ public static function closeHandlers()
3030
{
3131
foreach (self::getHandlers() as $handler) {
3232
if ($handler instanceof StreamHandler && ! $handler instanceof RotatingFileHandler) {
33-
if (method_exists($handler, 'close')) {
34-
$handler->close();
35-
}
33+
$handler->close();
3634
}
3735
}
3836
}

0 commit comments

Comments
 (0)