mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 19:54:44 +08:00
Add util function systemProp
This commit is contained in:
parent
cccdb3cdf2
commit
36742a867f
@ -164,3 +164,6 @@ public inline fun <E> MutableList<E>.replaceAllKotlin(operator: (E) -> E) {
|
|||||||
li.set(operator(li.next()))
|
li.set(operator(li.next()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public fun systemProp(name: String, default: Boolean): Boolean =
|
||||||
|
System.getProperty(name, default.toString())?.toBoolean() ?: default
|
Loading…
Reference in New Issue
Block a user