mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix moar ktlint issues
This commit is contained in:
committed by
Benoit Marty
parent
a831f05f6e
commit
5d086ad82d
-1
@@ -32,7 +32,6 @@ class VerifySelfSessionNode @AssistedInject constructor(
|
||||
@Assisted plugins: List<Plugin>,
|
||||
private val presenter: VerifySelfSessionPresenter,
|
||||
) : Node(buildContext, plugins = plugins) {
|
||||
|
||||
@Composable
|
||||
override fun View(modifier: Modifier) {
|
||||
val state = presenter.present()
|
||||
|
||||
-1
@@ -40,7 +40,6 @@ class VerifySelfSessionPresenter @Inject constructor(
|
||||
private val sessionVerificationService: SessionVerificationService,
|
||||
private val stateMachine: VerifySelfSessionStateMachine,
|
||||
) : Presenter<VerifySelfSessionState> {
|
||||
|
||||
@Composable
|
||||
override fun present(): VerifySelfSessionState {
|
||||
LaunchedEffect(Unit) {
|
||||
|
||||
-1
@@ -26,7 +26,6 @@ data class VerifySelfSessionState(
|
||||
val verificationFlowStep: VerificationStep,
|
||||
val eventSink: (VerifySelfSessionViewEvents) -> Unit,
|
||||
) {
|
||||
|
||||
@Stable
|
||||
sealed interface VerificationStep {
|
||||
data object Initial : VerificationStep
|
||||
|
||||
-1
@@ -31,7 +31,6 @@ class VerifySelfSessionStateMachine @Inject constructor(
|
||||
) : FlowReduxStateMachine<VerifySelfSessionStateMachine.State, VerifySelfSessionStateMachine.Event>(
|
||||
initialState = State.Initial
|
||||
) {
|
||||
|
||||
init {
|
||||
spec {
|
||||
inState<State.Initial> {
|
||||
|
||||
+2
-1
@@ -89,6 +89,7 @@ internal fun Int.toEmojiResource(): EmojiResource {
|
||||
60 -> EmojiResource(R.drawable.ic_verification_60, R.string.verification_emoji_60)
|
||||
61 -> EmojiResource(R.drawable.ic_verification_61, R.string.verification_emoji_61)
|
||||
62 -> EmojiResource(R.drawable.ic_verification_62, R.string.verification_emoji_62)
|
||||
/* 63 */ else -> EmojiResource(R.drawable.ic_verification_63, R.string.verification_emoji_63)
|
||||
63 -> EmojiResource(R.drawable.ic_verification_63, R.string.verification_emoji_63)
|
||||
else -> error("Cannot happen ($this)!")
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -35,7 +35,6 @@ import org.junit.Test
|
||||
|
||||
@ExperimentalCoroutinesApi
|
||||
class VerifySelfSessionPresenterTests {
|
||||
|
||||
@get:Rule
|
||||
val warmUpRule = WarmUpRule()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user