summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/storage/common.php')
-rw-r--r--lib/private/files/storage/common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index ed51bbf6470..8ebc0bcddb5 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -140,7 +140,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
if ($this->file_exists($path2)) {
if ($this->is_dir($path2)) {
$this->rmdir($path2);
- } else if ($this->is_file($path2)) {
+ } else {
$this->unlink($path2);
}
}
@@ -158,7 +158,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
if ($this->file_exists($path2)) {
if ($this->is_dir($path2)) {
$this->rmdir($path2);
- } else if ($this->is_file($path2)) {
+ } else {
$this->unlink($path2);
}
}