Remove useless trimStart

This commit is contained in:
Him188 2020-01-19 20:16:34 +08:00
parent 4f82703703
commit 479e9292d2

View File

@ -225,7 +225,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
): Listener<T> { ): Listener<T> {
return if (trim) { return if (trim) {
val toCheck = sub.trim() val toCheck = sub.trim()
content({ it.trimStart().contains(toCheck, ignoreCase = ignoreCase) }, { content({ it.contains(toCheck, ignoreCase = ignoreCase) }, {
onEvent(this, this.message.toString().trim()) onEvent(this, this.message.toString().trim())
}) })
} else { } else {