mirror of
https://github.com/nextcloud/android.git
synced 2024-11-21 20:55:31 +03:00
add curly bracket for condition checks
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
846b701916
commit
c45d8394e2
1 changed files with 6 additions and 2 deletions
|
@ -449,13 +449,17 @@ public class SynchronizeFolderOperation extends SyncOperation {
|
||||||
if (syncInBackgroundWorker) {
|
if (syncInBackgroundWorker) {
|
||||||
try {
|
try {
|
||||||
for (OCFile file: mFilesForDirectDownload) {
|
for (OCFile file: mFilesForDirectDownload) {
|
||||||
if (file == null) continue;
|
if (file == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
final var operation = new DownloadFileOperation(user, file, mContext);
|
final var operation = new DownloadFileOperation(user, file, mContext);
|
||||||
var result = operation.execute(getClient());
|
var result = operation.execute(getClient());
|
||||||
|
|
||||||
String filename = file.getFileName();
|
String filename = file.getFileName();
|
||||||
if (filename == null) continue;
|
if (filename == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (result.isSuccess()) {
|
if (result.isSuccess()) {
|
||||||
Log_OC.d(TAG, "startDirectDownloads completed for: " + file.getFileName());
|
Log_OC.d(TAG, "startDirectDownloads completed for: " + file.getFileName());
|
||||||
|
|
Loading…
Reference in a new issue