mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 18:59:18 +03:00
Fix spotless
Signed-off-by: Jonas Mayer <jonas.a.mayer@gmx.net>
This commit is contained in:
parent
74e75dc878
commit
5663263653
1 changed files with 5 additions and 7 deletions
|
@ -93,13 +93,7 @@ class FilesSyncWork(
|
||||||
)
|
)
|
||||||
|
|
||||||
if (canExitEarly(changedFiles, syncFolderId)) {
|
if (canExitEarly(changedFiles, syncFolderId)) {
|
||||||
val result = Result.success()
|
return logEndOfWorker(syncFolderId)
|
||||||
backgroundJobManager.logEndOfWorker(
|
|
||||||
BackgroundJobManagerImpl.formatClassTag(this::class) +
|
|
||||||
"_" + syncFolderId,
|
|
||||||
result
|
|
||||||
)
|
|
||||||
return result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val user = userAccountManager.getUser(syncedFolder.account)
|
val user = userAccountManager.getUser(syncedFolder.account)
|
||||||
|
@ -133,6 +127,10 @@ class FilesSyncWork(
|
||||||
powerManagementService
|
powerManagementService
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return logEndOfWorker(syncFolderId)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun logEndOfWorker(syncFolderId: Long): Result {
|
||||||
Log_OC.d(TAG, "File-sync worker (${syncedFolder.remotePath}) finished")
|
Log_OC.d(TAG, "File-sync worker (${syncedFolder.remotePath}) finished")
|
||||||
val result = Result.success()
|
val result = Result.success()
|
||||||
backgroundJobManager.logEndOfWorker(
|
backgroundJobManager.logEndOfWorker(
|
||||||
|
|
Loading…
Reference in a new issue