Skip to content

Commit 66f0146

Browse files
committed
lint
1 parent fd69956 commit 66f0146

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/http/HttpConnection.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ internal data class HttpHeader(val key: String, val value: String)
3333
internal data class HttpResponse(val responseCode: Int, val body: String, val headers: List<HttpHeader>)
3434

3535
internal class HttpConnection constructor(
36-
private val url: String,
37-
private val method: HttpRequestMethod,
38-
private val bodyMap: Map<*, *>?,
39-
private val bodyString: String?,
40-
contentType: String?,
41-
private val headers: List<HttpHeader> = listOf(),
42-
val api: SpotifyApi<*, *>? = null
36+
private val url: String,
37+
private val method: HttpRequestMethod,
38+
private val bodyMap: Map<*, *>?,
39+
private val bodyString: String?,
40+
contentType: String?,
41+
private val headers: List<HttpHeader> = listOf(),
42+
val api: SpotifyApi<*, *>? = null
4343
) {
4444
private val contentType: ContentType = contentType?.let { ContentType.parse(it) } ?: ContentType.Application.Json
4545

@@ -82,8 +82,8 @@ internal class HttpConnection constructor(
8282
}
8383

8484
internal suspend fun execute(
85-
additionalHeaders: List<HttpHeader>? = null,
86-
retryIf502: Boolean = true
85+
additionalHeaders: List<HttpHeader>? = null,
86+
retryIf502: Boolean = true
8787
): HttpResponse {
8888
val httpRequest = buildRequest(additionalHeaders)
8989

src/commonMain/kotlin/com.adamratzman.spotify/models/PagingObjects.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.adamratzman.spotify.http.SpotifyEndpoint
66
import com.adamratzman.spotify.models.serialization.toCursorBasedPagingObject
77
import com.adamratzman.spotify.models.serialization.toPagingObject
88
import com.adamratzman.spotify.utils.runBlocking
9+
import kotlin.reflect.KClass
910
import kotlinx.coroutines.Dispatchers
1011
import kotlinx.coroutines.ExperimentalCoroutinesApi
1112
import kotlinx.coroutines.flow.Flow
@@ -17,7 +18,6 @@ import kotlinx.coroutines.flow.toList
1718
import kotlinx.serialization.SerialName
1819
import kotlinx.serialization.Serializable
1920
import kotlinx.serialization.Transient
20-
import kotlin.reflect.KClass
2121

2222
/*
2323
Types used in PagingObjects and CursorBasedPagingObjects:

0 commit comments

Comments
 (0)