From 085a3410bf787a6be47e07e08055824f5d7542d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 09:27:34 +0100 Subject: [PATCH] Bump com.diffplug.spotless from 6.22.0 to 6.23.3 (#100) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Axel Rojas Bachem Co-authored-by: Axel Rojas Bachem --- build.gradle.kts | 2 +- .../kotlin/de/simplyroba/pixoobridge/client/PixooClient.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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