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