meili-epfl/Meili

View on GitHub
app/src/main/java/com/github/epfl/meili/cache/CacheService.kt

Summary

Maintainability
A
0 mins
Test Coverage
A
94%

Method getResponse has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

    /**
     * Tries to retrieve object from cache or from service if it is not in cache
     */
    open fun getResponse(arg: Any?, onSuccess: ((T) -> Unit)?, onError: ((Error) -> Unit)?) {
        if (onSuccess != null && onError != null) {
Severity: Minor
Found in app/src/main/java/com/github/epfl/meili/cache/CacheService.kt - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status