add curly bracket for condition checks

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-11-11 14:42:25 +01:00
parent 846b701916
commit c45d8394e2
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -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());