mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-26 17:19:24 +00:00
possible optimization
This commit is contained in:
1 file changed
+3
-3
@@ -160,9 +160,9 @@ suspend fun performBackupRequest(backupClient: OkHttpClient, details: UserDetail
|
|||||||
return try {
|
return try {
|
||||||
// we split this into multiple functions to free up as many references as we can
|
// we split this into multiple functions to free up as many references as we can
|
||||||
// go little gc go
|
// go little gc go
|
||||||
val request = generateBackupRequest(details, url, gameManager, localLevels)
|
backupClient.newCall(
|
||||||
val call = backupClient.newCall(request)
|
generateBackupRequest(details, url, gameManager, localLevels)
|
||||||
call.executeAsync()
|
).executeAsync()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.w(TAG, "performBackupRequest failed: ${e.stackTraceToString()}")
|
Log.w(TAG, "performBackupRequest failed: ${e.stackTraceToString()}")
|
||||||
return Result.failure(BackupUploadException(BackupUploadFailure.GENERIC_ERROR))
|
return Result.failure(BackupUploadException(BackupUploadFailure.GENERIC_ERROR))
|
||||||
|
|||||||
Reference in new issue
Block a user