diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-04 21:17:52 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-28 18:16:23 +0200 |
commit | 488fc402e4c144692a1a4c84d5cfacaae9bea2b8 (patch) | |
tree | 80ac157fc8177933ee4cce4324e22b3379947237 /lib/private/files/storage/common.php | |
parent | d15ed9b4d39c290a9643be69ad9fbb9478570321 (diff) | |
download | nextcloud-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.php | 4 |
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); } } |