mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
codacy: combine statements
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
a34761ba3a
commit
35ff763950
1 changed files with 2 additions and 4 deletions
|
@ -758,10 +758,8 @@ public class FileDataStorageManager {
|
|||
if (localFile.exists()) {
|
||||
File targetFile = new File(defaultSavePath + targetPath);
|
||||
File targetFolder = targetFile.getParentFile();
|
||||
if (!targetFolder.exists()) {
|
||||
if (!targetFolder.mkdirs()) {
|
||||
Log_OC.e(TAG, "Unable to create parent folder " + targetFolder.getAbsolutePath());
|
||||
}
|
||||
if (!targetFolder.exists() && !targetFolder.mkdirs()) {
|
||||
Log_OC.e(TAG, "Unable to create parent folder " + targetFolder.getAbsolutePath());
|
||||
}
|
||||
copied = FileStorageUtils.copyFile(localFile, targetFile);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue