瀏覽代碼

add curly bracket for condition checks

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 6 月之前
父節點
當前提交
c45d8394e2
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      app/src/main/java/com/owncloud/android/operations/SynchronizeFolderOperation.java

+ 6 - 2
app/src/main/java/com/owncloud/android/operations/SynchronizeFolderOperation.java

@@ -449,13 +449,17 @@ public class SynchronizeFolderOperation extends SyncOperation {
         if (syncInBackgroundWorker) {
             try {
                 for (OCFile file: mFilesForDirectDownload) {
-                    if (file == null) continue;
+                    if (file == null) {
+                        continue;
+                    }
 
                     final var operation = new DownloadFileOperation(user, file, mContext);
                     var result = operation.execute(getClient());
 
                     String filename = file.getFileName();
-                    if (filename == null) continue;
+                    if (filename == null) {
+                        continue;
+                    }
 
                     if (result.isSuccess()) {
                         Log_OC.d(TAG, "startDirectDownloads completed for: " + file.getFileName());