fixup! Cleanup tests and KDocs
This commit is contained in:
parent
d69bc66087
commit
34569b1c15
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue