We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d124c4 commit 5ef86beCopy full SHA for 5ef86be
src/main/java/org/radarbase/output/config/RestructureConfig.kt
@@ -81,7 +81,7 @@ data class RestructureConfig(
81
inline fun <T> T.copyEnv(key: String, doCopy: T.(String) -> T): T =
82
copyOnChange<T, String?>(
83
null,
84
- modification = { System.getenv(key) },
+ modification = { System.getenv(key).takeIf { it.isNotEmpty() } },
85
doCopy = { doCopy(requireNotNull(it)) }
86
)
87
0 commit comments