Clean up some code

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-07-07 20:43:07 +02:00 committed by AndyScherzinger
parent 7ac07ab08a
commit a380b3bbcf
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -190,7 +190,7 @@ public class FilesSyncHelper {
public static void restartJobsIfNeeded() { public static void restartJobsIfNeeded() {
final Context context = MainApp.getAppContext(); final Context context = MainApp.getAppContext();
boolean restartedInCurrentIteration = false; boolean restartedInCurrentIteration;
FileUploader.UploadRequester uploadRequester = new FileUploader.UploadRequester(); FileUploader.UploadRequester uploadRequester = new FileUploader.UploadRequester();
@ -261,12 +261,12 @@ public class FilesSyncHelper {
.build() .build()
.schedule(); .schedule();
} }
}
} else {
if (accountExists && fileExists) {
uploadRequester.retry(context, failedUpload);
} else { } else {
uploadsStorageManager.removeUpload(failedUpload); if (accountExists && fileExists) {
uploadRequester.retry(context, failedUpload);
} else {
uploadsStorageManager.removeUpload(failedUpload);
}
} }
} }
} }