mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Clean up some code
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
7ac07ab08a
commit
a380b3bbcf
1 changed files with 6 additions and 6 deletions
|
@ -190,7 +190,7 @@ public class FilesSyncHelper {
|
|||
|
||||
public static void restartJobsIfNeeded() {
|
||||
final Context context = MainApp.getAppContext();
|
||||
boolean restartedInCurrentIteration = false;
|
||||
boolean restartedInCurrentIteration;
|
||||
|
||||
FileUploader.UploadRequester uploadRequester = new FileUploader.UploadRequester();
|
||||
|
||||
|
@ -261,12 +261,12 @@ public class FilesSyncHelper {
|
|||
.build()
|
||||
.schedule();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (accountExists && fileExists) {
|
||||
uploadRequester.retry(context, failedUpload);
|
||||
} else {
|
||||
uploadsStorageManager.removeUpload(failedUpload);
|
||||
if (accountExists && fileExists) {
|
||||
uploadRequester.retry(context, failedUpload);
|
||||
} else {
|
||||
uploadsStorageManager.removeUpload(failedUpload);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue