From 56632636531e9d5131b3783b35611e90c6be35d8 Mon Sep 17 00:00:00 2001 From: Jonas Mayer Date: Tue, 30 Jul 2024 18:57:37 +0200 Subject: [PATCH] Fix spotless Signed-off-by: Jonas Mayer --- .../java/com/nextcloud/client/jobs/FilesSyncWork.kt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/nextcloud/client/jobs/FilesSyncWork.kt b/app/src/main/java/com/nextcloud/client/jobs/FilesSyncWork.kt index 086ad80bd8..98b3a47a06 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/FilesSyncWork.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/FilesSyncWork.kt @@ -93,13 +93,7 @@ class FilesSyncWork( ) if (canExitEarly(changedFiles, syncFolderId)) { - val result = Result.success() - backgroundJobManager.logEndOfWorker( - BackgroundJobManagerImpl.formatClassTag(this::class) + - "_" + syncFolderId, - result - ) - return result + return logEndOfWorker(syncFolderId) } val user = userAccountManager.getUser(syncedFolder.account) @@ -133,6 +127,10 @@ class FilesSyncWork( powerManagementService ) + return logEndOfWorker(syncFolderId) + } + + private fun logEndOfWorker(syncFolderId: Long): Result { Log_OC.d(TAG, "File-sync worker (${syncedFolder.remotePath}) finished") val result = Result.success() backgroundJobManager.logEndOfWorker(