1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-30 00:44:53 +01:00

Update ktlint to 0.28.0 version.

This commit is contained in:
Yahor Berdnikau 2018-09-30 10:37:14 +02:00
parent 6376a27b8b
commit 73af16b9c5
2 changed files with 4 additions and 3 deletions

View File

@ -5,8 +5,8 @@ ext.versions = [
gradle : '4.5.1',
androidTools : "3.1.3",
ktlint : "0.24.0",
ktlintGradle : "4.1.0",
ktlint : "0.28.0",
ktlintGradle : "5.1.0",
detekt : "1.0.0.RC6-4",
jacoco : "0.8.2",

View File

@ -20,7 +20,8 @@ class CoverArtRequestHandler(private val apiClient: SubsonicAPIClient) : Request
}
override fun load(request: Request, networkPolicy: Int): Result {
val id = request.uri.getQueryParameter(QUERY_ID) ?: throw IllegalArgumentException("Nullable id")
val id = request.uri.getQueryParameter(QUERY_ID)
?: throw IllegalArgumentException("Nullable id")
val response = apiClient.getCoverArt(id)
if (response.hasError()) {