From d1a55ed7fefccebd148990bf3f4e6a433a0b26ae Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Wed, 10 Jan 2024 11:36:43 +1100 Subject: [PATCH] chore: Ktlint Signed-off-by: KaiserBh --- .../data/sync/service/GoogleDriveSyncService.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/sync/service/GoogleDriveSyncService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/sync/service/GoogleDriveSyncService.kt index e468764e1..af757463a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/sync/service/GoogleDriveSyncService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/sync/service/GoogleDriveSyncService.kt @@ -188,12 +188,12 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync // Search for the existing file by name in the appData folder val query = "mimeType='application/gzip' and name = '$remoteFileName'" val fileList = drive.files() - .list() - .setSpaces("appDataFolder") - .setQ(query) - .setFields("files(id, name, createdTime)") - .execute() - .files + .list() + .setSpaces("appDataFolder") + .setQ(query) + .setFields("files(id, name, createdTime)") + .execute() + .files Log.d("GoogleDrive", "AppData folder file list: $fileList") return fileList @@ -277,7 +277,9 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync } else { for (file in appDataFileList) { drive.files().delete(file.id).execute() - logcat(LogPriority.DEBUG) { "Deleted sync data file in appData folder of Google Drive with file ID: ${file.id}" } + logcat( + LogPriority.DEBUG, + ) { "Deleted sync data file in appData folder of Google Drive with file ID: ${file.id}" } } DeleteSyncDataStatus.SUCCESS }