瀏覽代碼

removed empty if

tobiasKaminsky 8 年之前
父節點
當前提交
9544b79197
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java

+ 1 - 4
src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java

@@ -251,10 +251,7 @@ public class FileDataStorageManager {
     }
 
     public OCFile saveFileWithParent(OCFile file, Context context) {
-        if (file.getParentId() != 0 || file.getRemotePath().equals("/")) {
-//            nothing needed
-
-        } else {
+        if (file.getParentId() == 0 && !file.getRemotePath().equals("/")) {
             String remotePath = file.getRemotePath();
             String parentPath = remotePath.substring(0, remotePath.lastIndexOf(file.getFileName()));