filebackend: remove unneeded is_dir() call in FSFileBackend::doCleanInternal()

Change-Id: Ia630e2052edd31f0d9b6ed7068497dc4ae66d917
This commit is contained in:
Aaron Schulz 2019-09-08 14:39:52 -07:00 committed by Krinkle
parent dd71a77512
commit e021adabb9

View file

@ -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;