Skip to content

Commit

Permalink
[CHORE] #61-ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
l5x5l committed Aug 29, 2024
1 parent 01230ca commit 5a0d772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class AddLinkViewModel @Inject constructor(
val response = getLinkCardUseCase.getLinkCard(linkUrl)
if (response is PokitResult.Success) {
reduce { state.copy(step = ScreenStep.IDLE, link = Link.fromDomainLinkCard(response.result)) }
if (response.result.title.isNotEmpty()) {
if (response.result.title.isNotEmpty() && title.value.isEmpty()) {
_title.update { response.result.title }
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PokitPaging(
private val coroutineScope: CoroutineScope = CoroutineScope(Dispatchers.IO),
private val initPage: Int = 0,
private val firstRequestPage: Int = 3,
private val showUncategorizedPokit: Boolean = true
private val showUncategorizedPokit: Boolean = true,
) : SimplePaging<Pokit> {
private val _pagingState = MutableStateFlow(SimplePagingState.IDLE)
override val pagingState: StateFlow<SimplePagingState> = _pagingState.asStateFlow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data class AddPokitScreenState(
val step: AddPokitScreenStep = AddPokitScreenStep.IDLE,
val pokitImage: PokitImage? = null,
val isModify: Boolean = false,
val errorToastMessage: String? = null
val errorToastMessage: String? = null,
)

sealed class AddPokitScreenStep {
Expand Down

0 comments on commit 5a0d772

Please sign in to comment.