🔨 Refactors code

This commit is contained in:
Daniel Svitan
2025-05-11 19:10:00 +02:00
parent e4e2312595
commit ac9e4e901d
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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")
}
}