diff --git a/build.gradle.kts b/build.gradle.kts index 7fc513e..c92d7f4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { id("io.spring.dependency-management") version "1.1.4" kotlin("jvm") version "1.9.21" kotlin("plugin.spring") version "1.9.22" - id("com.diffplug.spotless") version "6.22.0" + id("com.diffplug.spotless") version "6.23.3" } group = "de.simplyroba" diff --git a/src/main/kotlin/de/simplyroba/pixoobridge/client/PixooClient.kt b/src/main/kotlin/de/simplyroba/pixoobridge/client/PixooClient.kt index 20df351..7884361 100644 --- a/src/main/kotlin/de/simplyroba/pixoobridge/client/PixooClient.kt +++ b/src/main/kotlin/de/simplyroba/pixoobridge/client/PixooClient.kt @@ -33,8 +33,7 @@ class PixooClient(config: PixooConfig, private val mapper: ObjectMapper) { .toBodilessEntity() .block(DEFAULT_TIMEOUT) ?.statusCode - ?.takeIf { it.is2xxSuccessful } - ?: throw IllegalStateException("Health check at pixoo failed") + ?.takeIf { it.is2xxSuccessful } ?: throw IllegalStateException("Health check at pixoo failed") } // OnOff, 0|1, 1=on; 0=off