Skip to content

Commit bddc353

Browse files
committed
Remove unnecessary empty usages
1 parent 69b75b9 commit bddc353

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public static function changeExtension(string $path, string $extension): string
351351
}
352352

353353
// No actual extension in path
354-
if (empty($actualExtension)) {
354+
if (!$actualExtension) {
355355
return $path.(str_ends_with($path, '.') ? '' : '.').$extension;
356356
}
357357

Tests/FilesystemTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function setUp(): void
6565

6666
protected function tearDown(): void
6767
{
68-
if (!empty($this->longPathNamesWindows)) {
68+
if ($this->longPathNamesWindows) {
6969
foreach ($this->longPathNamesWindows as $path) {
7070
exec('DEL '.$path);
7171
}

0 commit comments

Comments
 (0)