delete 'return' in Filesystem.php
parent
f154d5c09d
commit
e61b559eb2
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue