mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 23:11:58 +03:00
removed empty if
This commit is contained in:
parent
3f7263d532
commit
6c24bb2c7d
1 changed files with 1 additions and 4 deletions
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue