Minor refactoring

This commit is contained in:
Vitor Pamplona
2025-08-12 17:15:23 -04:00
parent d605eb3b0a
commit c14d976ad1

View File

@@ -50,7 +50,7 @@ class ReqCmd(
}
@JvmStatic
fun parse(msgArray: JsonNode): com.vitorpamplona.quartz.nip01Core.relay.commands.toRelay.ReqCmd {
fun parse(msgArray: JsonNode): ReqCmd {
val filters = mutableListOf<Filter>()
for (i in 2 until msgArray.size()) {
@@ -60,7 +60,7 @@ class ReqCmd(
}
}
return com.vitorpamplona.quartz.nip01Core.relay.commands.toRelay.ReqCmd(
return ReqCmd(
msgArray.get(1).asText(),
filters,
)