From 488fc402e4c144692a1a4c84d5cfacaae9bea2b8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Jul 2013 21:17:52 +0200 Subject: [PATCH] remove unneeded check --- lib/private/files/storage/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index ed51bbf647..8ebc0bcddb 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); } }