Skip to content

Commit

Permalink
fixed wrong return type for error code
Browse files Browse the repository at this point in the history
  • Loading branch information
jnk-cons committed Jan 23, 2024
1 parent ac9dbc6 commit 5b2bd51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ data class Data(
* @since 2.1
*/
fun valueAsErrorCode() =
if (typeObject() == DataType.ERROR) ResultCode.UNKNOWN else ErrorCode.byRscpCode(valueAsInt() ?: ErrorCode.UNKNOWN.rscpCode.toInt())
if (typeObject() == DataType.ERROR) ErrorCode.UNKNOWN else ErrorCode.byRscpCode(valueAsInt() ?: ErrorCode.UNKNOWN.rscpCode.toInt())

/**
* Checks if the response type is of type error.
Expand Down

0 comments on commit 5b2bd51

Please sign in to comment.