remove bad func

androidx
Zhanty 5 years ago
parent 90df0fded0
commit 1a34c1c7e3
  1. 11
      lib_base/src/main/java/com/android/base/data/Resource.kt

@ -39,13 +39,4 @@ inline fun <T> Resource<T>.onSuccessWithData(onSuccess: (data: T) -> Unit): Reso
onSuccess(t)
}
return this
}
val <T> Resource<T>?.isFailed
get() = this != null && this.isError
val <T> Resource<T>?.isSucceeded
get() = this != null && this.isSuccess
val <T> Resource<T>?.inLoading
get() = this != null && this.isLoading
}
Loading…
Cancel
Save