refactor(MessageListBean.java): 将 函数 getErrorCode 返回值写在一行代码中
This commit is contained in:
parent
211840e5d6
commit
fe1df9e6ec
|
@ -18,9 +18,7 @@ class MessageListBean : BaseBean() {
|
|||
val page: PageInfoBean? = null
|
||||
val message: MessageBean? = null
|
||||
|
||||
fun getErrorCode() {
|
||||
Integer.valueOf(errorCode!!)
|
||||
}
|
||||
fun getErrorCode() = Integer.valueOf(errorCode!!)
|
||||
|
||||
open inner class UserInfoBean {
|
||||
val id: String? = null
|
||||
|
|
Loading…
Reference in New Issue