mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-13 12:38:58 +01:00
Dependency updates. OkHttp nullability changes
This commit is contained in:
@@ -22,5 +22,5 @@ fun Element.attrOrText(css: String): String {
|
||||
* @param html the body of the response. Use only if the body was read before calling this method.
|
||||
*/
|
||||
fun Response.asJsoup(html: String? = null): Document {
|
||||
return Jsoup.parse(html ?: body().string(), request().url().toString())
|
||||
return Jsoup.parse(html ?: body()!!.string(), request().url().toString())
|
||||
}
|
||||
Reference in New Issue
Block a user