Skip to content

Commit c824e5b

Browse files
committed
fix compilation
1 parent 5365dd9 commit c824e5b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wasmJsMain/kotlin/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package io.github.oshai.kotlinlogging
22

3-
private fun startupMessageDisabledInWindow(): Boolean =
3+
private val startupMessageDisabledInWindow: Boolean =
44
js("typeof window !== 'undefined' && (window.KOTLIN_LOGGING_STARTUP_MESSAGE === 'false' || window.KOTLIN_LOGGING_STARTUP_MESSAGE === false)") as Boolean
55

6-
private fun startupMessageDisabledInEnv(): Boolean =
6+
private val startupMessageDisabledInEnv: Boolean =
77
js("typeof process !== 'undefined' && process.env && (process.env.KOTLIN_LOGGING_STARTUP_MESSAGE === 'false' || process.env.KOTLIN_LOGGING_STARTUP_MESSAGE === false)") as Boolean
88

99
private fun resolveStartupMessageDefault(): Boolean {
1010
try {
11-
if (startupMessageDisabledInWindow()) {
11+
if (startupMessageDisabledInWindow) {
1212
return false
1313
}
14-
if (startupMessageDisabledInEnv()) {
14+
if (startupMessageDisabledInEnv) {
1515
return false
1616
}
1717
return true

0 commit comments

Comments
 (0)