Fix recursive call

This commit is contained in:
Him188 2020-04-11 20:22:30 +08:00
parent b9a3675dad
commit 770c5cd5a2
2 changed files with 2 additions and 8 deletions

View File

@ -63,11 +63,8 @@ private constructor(val target: Long, val display: String) :
@JvmName("followedBy")
@JvmSynthetic
override fun followedBy1(tail: Message): CombinedMessage {
if (tail is PlainText && tail.stringValue.startsWith(' ')) {
return followedByInternalForBinaryCompatibility(tail)
}
return followedByInternalForBinaryCompatibility(PlainText(" ") + tail)
}
override fun followedBy(tail: Message): MessageChain {
if (tail is PlainText && tail.stringValue.startsWith(' ')) {

View File

@ -49,11 +49,8 @@ object AtAll :
@JvmName("followedBy")
@JvmSynthetic
override fun followedBy1(tail: Message): CombinedMessage {
if (tail is PlainText && tail.stringValue.startsWith(' ')) {
return followedByInternalForBinaryCompatibility(tail)
}
return followedByInternalForBinaryCompatibility(PlainText(" ") + tail)
}
override fun followedBy(tail: Message): MessageChain {
if (tail is PlainText && tail.stringValue.startsWith(' ')) {