mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 14:27:29 +01:00
Refactoring
This commit is contained in:
@@ -29,9 +29,6 @@ class NoticeMessage(
|
|||||||
const val LABEL = "NOTICE"
|
const val LABEL = "NOTICE"
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun parse(msgArray: JsonNode): NoticeMessage =
|
fun parse(msgArray: JsonNode) = NoticeMessage(msgArray.get(1).asText())
|
||||||
NoticeMessage(
|
|
||||||
msgArray.get(1).asText(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user