Optimize imports, disallow wildcard imports because of klint, run linter
This commit is contained in:
@@ -8,8 +8,8 @@ import org.jsoup.nodes.Document
|
||||
|
||||
fun Response.interceptAsHtml(block: (Document) -> Unit): Response {
|
||||
val body = body
|
||||
if (body?.contentType()?.type == "text"
|
||||
&& body.contentType()?.subtype == "html") {
|
||||
if (body?.contentType()?.type == "text" &&
|
||||
body.contentType()?.subtype == "html") {
|
||||
val bodyString = body.string()
|
||||
val rebuiltResponse = newBuilder()
|
||||
.body(ResponseBody.create(body.contentType(), bodyString))
|
||||
@@ -28,4 +28,4 @@ fun Response.interceptAsHtml(block: (Document) -> Unit): Response {
|
||||
return rebuiltResponse
|
||||
}
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user