From 34569b1c15bd6f318c7321ed7eaff72aec67918e Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 9 May 2025 12:03:11 -0700 Subject: [PATCH] fixup! Cleanup tests and KDocs --- src/test/kotlin/net/thauvin/erik/mobibot/LocalProperties.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/net/thauvin/erik/mobibot/LocalProperties.kt b/src/test/kotlin/net/thauvin/erik/mobibot/LocalProperties.kt index 199ca1d..0f8ff42 100644 --- a/src/test/kotlin/net/thauvin/erik/mobibot/LocalProperties.kt +++ b/src/test/kotlin/net/thauvin/erik/mobibot/LocalProperties.kt @@ -46,7 +46,7 @@ open class LocalProperties { if (Files.exists(localPath)) { try { Files.newInputStream(localPath).use { stream -> localProps.load(stream) } - } catch (ignore: IOException) { + } catch (_: IOException) { // Do nothing } } @@ -59,7 +59,7 @@ open class LocalProperties { val ciName = System.getenv("CI_NAME") return ciName ?: try { InetAddress.getLocalHost().hostName - } catch (ignore: UnknownHostException) { + } catch (_: UnknownHostException) { "Unknown Host" } } @@ -72,7 +72,7 @@ open class LocalProperties { env?.let { localProps.setProperty(key, env) } - throw IOException("The $key property not found in local.properties or environment variables.") + env } }