coding-blocks/CBOnlineApp

View on GitHub
app/src/main/java/com/codingblocks/cbonlineapp/util/livedata/LiveDataExtensions.kt

Summary

Maintainability
A
1 hr
Test Coverage

Method getDistinct has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

fun <T> LiveData<T>.getDistinct(): LiveData<T> {
    val distinctLiveData = MediatorLiveData<T>()
    distinctLiveData.addSource(
        this,
        object : Observer<T> {

    There are no issues that match your filters.

    Category
    Status