Skip to content

Commit

Permalink
Fix for refreshAccessToken
Browse files Browse the repository at this point in the history
  • Loading branch information
lm2343635 committed Jan 24, 2021
1 parent 6609760 commit 04c0db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pluto-kotlin-client-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'maven-publish'

buildscript {
ext.versionCode = 23
ext.versionName = '0.8.4'
ext.versionCode = 24
ext.versionName = '0.8.5'
}

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ fun Pluto.refreshAccessToken(
) {
val plutoResponse = response.body()
if (plutoResponse == null) {
error?.invoke(parseErrorCodeFromErrorBody(response.errorBody(), gson))
val plutoError = parseErrorCodeFromErrorBody(response.errorBody(), gson)
error?.invoke(plutoError)
return
}
plutoResponse.analysis(
Expand Down

0 comments on commit 04c0db2

Please sign in to comment.