Lint
This commit is contained in:
parent
aac2fcb7d4
commit
a1a9b4b812
@ -229,7 +229,7 @@ class EHentai(
|
||||
} else {
|
||||
parsedLocation.queryParameter(REVERSE_PARAM)!!.toBoolean()
|
||||
}
|
||||
Pair(parsedMangas, hasNextPage)
|
||||
parsedMangas to hasNextPage
|
||||
}
|
||||
|
||||
private fun getGenre(element: Element? = null, genreString: String? = null): String? {
|
||||
@ -879,8 +879,7 @@ class EHentai(
|
||||
stringBuilder.append(" ")
|
||||
}
|
||||
|
||||
xLogD(stringBuilder.toString())
|
||||
return stringBuilder.toString().trim()
|
||||
return stringBuilder.toString().trim().also { xLogD(it) }
|
||||
}
|
||||
|
||||
data class AdvSearchEntry(val search: Pair<String, String>, val exclude: Boolean)
|
||||
|
@ -215,7 +215,6 @@ class MangaDex(delegate: HttpSource, val context: Context) :
|
||||
).await().closeQuietly()
|
||||
}
|
||||
|
||||
|
||||
val response = client.newCall(GET(MdUtil.apiUrl + MdUtil.isLoggedInApi, headers)).await()
|
||||
|
||||
withIOContext { response.body?.string() }.let { jsonData ->
|
||||
|
@ -17,7 +17,6 @@ fun Any.xLog(logLevel: LogLevel, log: String) = xLog().log(logLevel.int, log)
|
||||
fun Any.xLogJson(log: String) = xLog().json(log)
|
||||
fun Any.xLogXML(log: String) = xLog().xml(log)
|
||||
|
||||
|
||||
fun Any.xLogE(log: String, e: Throwable) = xLogStack().e(log, e)
|
||||
fun Any.xLogW(log: String, e: Throwable) = xLogStack().w(log, e)
|
||||
fun Any.xLogD(log: String, e: Throwable) = xLogStack().d(log, e)
|
||||
@ -70,7 +69,6 @@ sealed class LogLevel(val int: Int, val androidLevel: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Deprecated("Use proper throwable function", ReplaceWith("""xLogE("", log)"""))
|
||||
fun Any.xLogE(log: Throwable) = xLogStack().e(log)
|
||||
|
||||
@ -84,4 +82,4 @@ fun Any.xLogD(log: Throwable) = xLogStack().d(log)
|
||||
fun Any.xLogI(log: Throwable) = xLogStack().i(log)
|
||||
|
||||
@Deprecated("Use proper throwable function", ReplaceWith("""xLog(logLevel, "", log)"""))
|
||||
fun Any.xLog(logLevel: LogLevel, log: Throwable) = xLogStack().log(logLevel.int, log)
|
||||
fun Any.xLog(logLevel: LogLevel, log: Throwable) = xLogStack().log(logLevel.int, log)
|
||||
|
Loading…
x
Reference in New Issue
Block a user