Avoid if-null Checks.

This commit is contained in:
Erik C. Thauvin 2021-11-14 15:38:38 -08:00
parent f1b50d741c
commit 29b8888eca
2 changed files with 30 additions and 25 deletions

View file

@ -61,7 +61,7 @@ open class LocalProperties {
localProps.getProperty(key)
} else {
val env = System.getenv(keyToEnv(key))
if (env != null) {
env?.let {
localProps.setProperty(key, env)
}
env