fixup! Cleanup tests and KDocs

This commit is contained in:
Erik C. Thauvin 2025-05-09 12:03:11 -07:00
parent d69bc66087
commit 34569b1c15
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -46,7 +46,7 @@ open class LocalProperties {
if (Files.exists(localPath)) { if (Files.exists(localPath)) {
try { try {
Files.newInputStream(localPath).use { stream -> localProps.load(stream) } Files.newInputStream(localPath).use { stream -> localProps.load(stream) }
} catch (ignore: IOException) { } catch (_: IOException) {
// Do nothing // Do nothing
} }
} }
@ -59,7 +59,7 @@ open class LocalProperties {
val ciName = System.getenv("CI_NAME") val ciName = System.getenv("CI_NAME")
return ciName ?: try { return ciName ?: try {
InetAddress.getLocalHost().hostName InetAddress.getLocalHost().hostName
} catch (ignore: UnknownHostException) { } catch (_: UnknownHostException) {
"Unknown Host" "Unknown Host"
} }
} }
@ -72,7 +72,7 @@ open class LocalProperties {
env?.let { env?.let {
localProps.setProperty(key, env) localProps.setProperty(key, env)
} }
throw IOException("The $key property not found in local.properties or environment variables.") env
} }
} }