removed empty if

This commit is contained in:
tobiasKaminsky 2017-05-04 14:37:02 +02:00 committed by Mario Danic
parent 3f7263d532
commit 6c24bb2c7d

View file

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