Avoid if-null Checks.
This commit is contained in:
parent
f1b50d741c
commit
29b8888eca
2 changed files with 30 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue