mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 04:07:03 +05:30
fix: remove useless get
This commit is contained in:
parent
0fc5adc197
commit
0581cedfb0
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ constructor(
|
||||||
@BaseUrl private val url: String,
|
@BaseUrl private val url: String,
|
||||||
) {
|
) {
|
||||||
suspend fun extractToken(): String? {
|
suspend fun extractToken(): String? {
|
||||||
val request = Request.Builder().url(url).get().build()
|
val request = Request.Builder().url(url).build()
|
||||||
return withContext(dispatcher) {
|
return withContext(dispatcher) {
|
||||||
okHttpClient.newCall(request).execute().use { response ->
|
okHttpClient.newCall(request).execute().use { response ->
|
||||||
val doc = Jsoup.parse(response.body?.string() ?: return@use null)
|
val doc = Jsoup.parse(response.body?.string() ?: return@use null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue