Clean code
This commit is contained in:
parent
945e5d5a74
commit
ad9a48d5fa
|
@ -25,12 +25,6 @@ import im.vector.matrix.android.api.session.room.model.RoomMember
|
|||
import im.vector.matrix.android.api.session.room.model.message.MessageTextContent
|
||||
import io.mockk.every
|
||||
import io.mockk.mockk
|
||||
import org.amshove.kluent.When
|
||||
import org.amshove.kluent.any
|
||||
import org.amshove.kluent.calling
|
||||
import org.amshove.kluent.itAnswers
|
||||
import org.amshove.kluent.itReturns
|
||||
import org.amshove.kluent.mock
|
||||
import org.junit.Assert
|
||||
import org.junit.Test
|
||||
|
||||
|
@ -183,5 +177,4 @@ class PushrulesConditionTest {
|
|||
Assert.assertTrue("Notice", conditionEqual.isSatisfied(it))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,7 +56,6 @@ object CommandParser {
|
|||
return ParsedCommand.ErrorEmptySlashCommand
|
||||
}
|
||||
|
||||
|
||||
return when (val slashCommand = messageParts.first()) {
|
||||
Command.CHANGE_DISPLAY_NAME.command -> {
|
||||
val newDisplayName = textMessage.substring(Command.CHANGE_DISPLAY_NAME.command.length).trim()
|
||||
|
|
|
@ -18,7 +18,6 @@ package im.vector.riotx.features.share
|
|||
|
||||
import im.vector.matrix.android.api.session.room.model.RoomSummary
|
||||
import im.vector.riotx.core.utils.BehaviorStore
|
||||
import im.vector.riotx.core.utils.RxStore
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
|
|
Loading…
Reference in New Issue