1
0
Fork 0

delete 'return' in Filesystem.php

pull/8641/head
arai 2020-02-23 21:38:14 +09:00
parent f154d5c09d
commit e61b559eb2
1 changed files with 3 additions and 3 deletions

View File

@ -206,7 +206,7 @@ class Filesystem
usleep(350000); usleep(350000);
$unlinked = @$this->unlinkImplementation($path); $unlinked = @$this->unlinkImplementation($path);
} }
if (!$unlinked) { if (!$unlinked) {
$error = error_get_last(); $error = error_get_last();
$message = 'Could not delete '.$path.': ' . @$error['message']; $message = 'Could not delete '.$path.': ' . @$error['message'];
@ -237,7 +237,7 @@ class Filesystem
usleep(350000); usleep(350000);
$deleted = @rmdir($path); $deleted = @rmdir($path);
} }
if (!$deleted) { if (!$deleted) {
$error = error_get_last(); $error = error_get_last();
$message = 'Could not delete '.$path.': ' . @$error['message']; $message = 'Could not delete '.$path.': ' . @$error['message'];
@ -340,7 +340,7 @@ class Filesystem
} }
} }
return $this->copyThenRemove($source, $target); $this->copyThenRemove($source, $target);
} }
/** /**