chore: Ktlint

Signed-off-by: KaiserBh <kaiserbh@proton.me>
This commit is contained in:
KaiserBh 2024-01-10 11:36:43 +11:00
parent a13e731d1c
commit d1a55ed7fe
No known key found for this signature in database
GPG Key ID: 14D73B142042BBA9

View File

@ -188,12 +188,12 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync
// Search for the existing file by name in the appData folder // Search for the existing file by name in the appData folder
val query = "mimeType='application/gzip' and name = '$remoteFileName'" val query = "mimeType='application/gzip' and name = '$remoteFileName'"
val fileList = drive.files() val fileList = drive.files()
.list() .list()
.setSpaces("appDataFolder") .setSpaces("appDataFolder")
.setQ(query) .setQ(query)
.setFields("files(id, name, createdTime)") .setFields("files(id, name, createdTime)")
.execute() .execute()
.files .files
Log.d("GoogleDrive", "AppData folder file list: $fileList") Log.d("GoogleDrive", "AppData folder file list: $fileList")
return fileList return fileList
@ -277,7 +277,9 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync
} else { } else {
for (file in appDataFileList) { for (file in appDataFileList) {
drive.files().delete(file.id).execute() 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 DeleteSyncDataStatus.SUCCESS
} }