Skip to content

Commit 08c2817

Browse files
committed
fix: PHPStan - right side of && always true in flush()
1 parent 00c52fa commit 08c2817

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Usage/Usage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function flush(): bool
360360

361361
// Flush events to events table
362362
if (!empty($events)) {
363-
$result = $this->adapter->addBatch($events, self::TYPE_EVENT) && $result;
363+
$result = $this->adapter->addBatch($events, self::TYPE_EVENT);
364364
}
365365

366366
// Flush gauges to gauges table

0 commit comments

Comments
 (0)