Fix moar ktlint issues

This commit is contained in:
Benoit Marty 2024-01-11 09:41:14 +01:00 committed by Benoit Marty
parent a831f05f6e
commit 5d086ad82d
528 changed files with 146 additions and 629 deletions

View file

@ -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()

View file

@ -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) {

View file

@ -26,7 +26,6 @@ data class VerifySelfSessionState(
val verificationFlowStep: VerificationStep,
val eventSink: (VerifySelfSessionViewEvents) -> Unit,
) {
@Stable
sealed interface VerificationStep {
data object Initial : VerificationStep

View file

@ -31,7 +31,6 @@ class VerifySelfSessionStateMachine @Inject constructor(
) : FlowReduxStateMachine<VerifySelfSessionStateMachine.State, VerifySelfSessionStateMachine.Event>(
initialState = State.Initial
) {
init {
spec {
inState<State.Initial> {

View file

@ -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)!")
}
}

View file

@ -35,7 +35,6 @@ import org.junit.Test
@ExperimentalCoroutinesApi
class VerifySelfSessionPresenterTests {
@get:Rule
val warmUpRule = WarmUpRule()