Skip to content

Commit

Permalink
Fix Detekt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmassel committed Nov 27, 2024
1 parent 917cb9b commit e08ae1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class WPcomLoginClient @Inject constructor(
} else {
val json = response.body?.string() ?: return@withContext Result.failure(WPcomLoginError.InvalidResponse)
val gson = Gson().fromJson(json, WPcomAuthorizationCodeResponse::class.java)
Result.success(gson.access_token)
Result.success(gson.accessToken)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.wordpress.android.fluxc.network.rest.wpapi.applicationpasswords

import com.google.gson.annotations.SerializedName

data class WPcomAuthorizationCodeResponse(
val access_token: String,
val token_type: String,
val blog_id: String,
val blog_url: String,
@SerializedName("access_token") val accessToken: String,
@SerializedName("token_type") val tokenType: String,
@SerializedName("blog_id") val blogId: String,
@SerializedName("blog_url") val blogUrl: String,
val scope: String
)

0 comments on commit e08ae1f

Please sign in to comment.