Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-21 13:25:40 +03:00
parent 99e6086bf5
commit 6fa5222358
2 changed files with 1 additions and 6 deletions

View file

@ -13,9 +13,6 @@
<package name="io.ktor" alias="false" withSubpackages="true" />
</value>
</option>
<option name="LINE_BREAK_AFTER_MULTILINE_WHEN_ENTRY" value="false" />
<option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="5" />
<option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="3" />
<option name="ALLOW_TRAILING_COMMA" value="true" />
<option name="BLANK_LINES_BEFORE_DECLARATION_WITH_COMMENT_OR_ANNOTATION_ON_SEPARATE_LINE" value="0" />
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />

View file

@ -14,9 +14,7 @@ private fun internalReduce(action: Action, state: AppState): HomeState {
when (action) {
is HomeAction.InsertStory -> {
state = state.copy(
stories = state.stories.toMutableList().apply {
add(action.position, action.story)
},
stories = listOf(action.story) + state.stories,
)
}
is HomeAction.ScanInProgress -> {