summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/common.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-04 21:17:52 +0200
committerRobin Appelman <icewind@owncloud.com>2014-05-28 18:16:23 +0200
commit488fc402e4c144692a1a4c84d5cfacaae9bea2b8 (patch)
tree80ac157fc8177933ee4cce4324e22b3379947237 /lib/private/files/storage/common.php
parentd15ed9b4d39c290a9643be69ad9fbb9478570321 (diff)
downloadnextcloud-server-488fc402e4c144692a1a4c84d5cfacaae9bea2b8.tar.gz
nextcloud-server-488fc402e4c144692a1a4c84d5cfacaae9bea2b8.zip
remove unneeded check
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);
}
}