app/src/main/java/com/codingblocks/cbonlineapp/util/livedata/LiveDataExtensions.kt
Method getDistinct
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fun <T> LiveData<T>.getDistinct(): LiveData<T> {
val distinctLiveData = MediatorLiveData<T>()
distinctLiveData.addSource(
this,
object : Observer<T> {