mirror of
https://github.com/HMCore/Orbot.git
synced 2026-01-21 01:13:10 +00:00
Change CLI to use kordx.commands
This commit is contained in:
8
src/main/kotlin/de/wulkanat/extensions/Generic.kt
Normal file
8
src/main/kotlin/de/wulkanat/extensions/Generic.kt
Normal file
@@ -0,0 +1,8 @@
|
||||
package de.wulkanat.extensions
|
||||
|
||||
inline fun <T> Boolean.alsoIf(other: T, body: () -> Unit): Boolean {
|
||||
if (this == other) {
|
||||
body()
|
||||
}
|
||||
return this
|
||||
}
|
||||
Reference in New Issue
Block a user