app/src/main/java/com/github/epfl/meili/cache/CacheService.kt
Method getResponse
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
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) {