Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chooongg committed Jan 3, 2023
1 parent 2f7c58c commit 327ad99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ task clean(type: Delete) {

ext {
versionCode = 1
versionName = "1.0.48"
versionName = "1.0.49"
sdkConfig = [
compileSdk: 33,
minSdk : 21,
Expand Down
2 changes: 1 addition & 1 deletion net/src/main/java/com/chooongg/net/CoroutinesRequestDSL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ open class CoroutinesRequestDSL<RESPONSE : ResponseData<DATA>, DATA> :
val data = response.checkData()
withMain {
onSuccessMessage?.invoke(response.getMessage())
if (onSuccessMessage == null) throw HttpException(HttpException.Type.EMPTY)
if (data != null) onSuccess?.invoke(data)
else throw HttpException(HttpException.Type.EMPTY)
}
}
}

0 comments on commit 327ad99

Please sign in to comment.