refactor(MessageListBean.java): 将 函数 getErrorCode 返回值写在一行代码中

This commit is contained in:
GoFly233 2020-08-13 20:27:05 +08:00 committed by HuanChengFly
parent 211840e5d6
commit fe1df9e6ec
2 changed files with 1 additions and 3 deletions

View File

@ -18,9 +18,7 @@ class MessageListBean : BaseBean() {
val page: PageInfoBean? = null val page: PageInfoBean? = null
val message: MessageBean? = null val message: MessageBean? = null
fun getErrorCode() { fun getErrorCode() = Integer.valueOf(errorCode!!)
Integer.valueOf(errorCode!!)
}
open inner class UserInfoBean { open inner class UserInfoBean {
val id: String? = null val id: String? = null