mirror of
https://codeberg.org/selfsigned-ash/antifed
synced 2026-07-21 18:49:34 +02:00
🔨 Refactors code
This commit is contained in:
@@ -15,8 +15,8 @@ enum class ActionKind {
|
||||
companion object {
|
||||
fun from(it: String): ActionKind {
|
||||
return when (it.lowercase()) {
|
||||
"text" -> ActionKind.TEXT
|
||||
"script" -> ActionKind.SCRIPT
|
||||
"text" -> TEXT
|
||||
"script" -> SCRIPT
|
||||
else -> throw IllegalArgumentException("Invalid action kind: $it")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user