From 6c24bb2c7d8fdcbd1e64372051d9944b36d4e061 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 4 May 2017 14:37:02 +0200 Subject: [PATCH] removed empty if --- .../owncloud/android/datamodel/FileDataStorageManager.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java index 4f649c24f5..1b86e7632f 100644 --- a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java +++ b/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()));