Skip to content

Commit 1740043

Browse files
committed
clean unnecessary if
1 parent 13ad491 commit 1740043

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Processors/RotativeProcessor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ private function rotate(int $number = 1): string
3636
}
3737

3838
if ($this->maxFiles > 0 && $number >= $this->maxFiles) {
39-
if (file_exists($filenameTarget)) {
40-
unlink($filenameTarget);
41-
}
39+
unlink($filenameTarget);
4240

4341
return $filenameTarget;
4442
}

0 commit comments

Comments
 (0)