dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd71a77
)
filebackend: remove unneeded is_dir() call in FSFileBackend::doCleanInternal()
author
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 8 Sep 2019 21:39:52 +0000
(14:39 -0700)
committer
Krinkle
<krinklemail@gmail.com>
Tue, 10 Sep 2019 03:13:34 +0000
(
03:13
+0000)
Change-Id: Ia630e2052edd31f0d9b6ed7068497dc4ae66d917
includes/libs/filebackend/FSFileBackend.php
patch
|
blob
|
history
diff --git
a/includes/libs/filebackend/FSFileBackend.php
b/includes/libs/filebackend/FSFileBackend.php
index
5534cbd
..
9ed7ae3
100644
(file)
--- a/
includes/libs/filebackend/FSFileBackend.php
+++ b/
includes/libs/filebackend/FSFileBackend.php
@@
-556,9
+556,7
@@
class FSFileBackend extends FileBackendStore {
$contRoot = $this->containerFSRoot( $shortCont, $fullCont ); // must be valid
$dir = ( $dirRel != '' ) ? "{$contRoot}/{$dirRel}" : $contRoot;
AtEase::suppressWarnings();
- if ( is_dir( $dir ) ) {
- rmdir( $dir ); // remove directory if empty
- }
+ rmdir( $dir ); // remove directory if empty
AtEase::restoreWarnings();
return $status;