]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove unneeded check
authorRobin Appelman <icewind@owncloud.com>
Thu, 4 Jul 2013 19:17:52 +0000 (21:17 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 28 May 2014 16:16:23 +0000 (18:16 +0200)
lib/private/files/storage/common.php

index ed51bbf64708d7ecfbe8aa7987c64acbb597bf18..8ebc0bcddb5fcb0844bfb317855812bf167edd3a 100644 (file)
@@ -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);
                                }
                        }