浏览代码

delete 'return' in Filesystem.php

arai 5 年之前
父节点
当前提交
e61b559eb2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Composer/Util/Filesystem.php

+ 3 - 3
src/Composer/Util/Filesystem.php

@@ -206,7 +206,7 @@ class Filesystem
                 usleep(350000);
                 $unlinked = @$this->unlinkImplementation($path);
             }
-            
+
             if (!$unlinked) {
                 $error = error_get_last();
                 $message = 'Could not delete '.$path.': ' . @$error['message'];
@@ -237,7 +237,7 @@ class Filesystem
                 usleep(350000);
                 $deleted = @rmdir($path);
             }
-            
+
             if (!$deleted) {
                 $error = error_get_last();
                 $message = 'Could not delete '.$path.': ' . @$error['message'];
@@ -340,7 +340,7 @@ class Filesystem
             }
         }
 
-        return $this->copyThenRemove($source, $target);
+        $this->copyThenRemove($source, $target);
     }
 
     /**