mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-21 10:42:25 +08:00
Add util function systemProp
This commit is contained in:
parent
cccdb3cdf2
commit
36742a867f
@ -163,4 +163,7 @@ public inline fun <E> MutableList<E>.replaceAllKotlin(operator: (E) -> E) {
|
||||
while (li.hasNext()) {
|
||||
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