Skip to content

Commit

Permalink
[CHORE] #87 : EMPTY 상수 제거 및 초기 상태 현재 시간에서 최소 최대 시간 상수로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 11, 2024
1 parent 6af2403 commit 3a4c7d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class SurveyFormEditViewModel @Inject constructor(
_surveyQuestionList.value.addAll(surveyQuestionList)
}

private fun clearSurveyQuestionState() { _surveyQuestion.value = EMPTY }
private fun clearSurveyQuestionState() { _surveyQuestion.value = "" }

private fun isNotValidSurveyQuestion() = _surveyQuestion.value.isBlank()

Expand All @@ -221,8 +221,6 @@ class SurveyFormEditViewModel @Inject constructor(
}

companion object {
const val EMPTY = ""
val EVENT_SELECTION_INIT: Event =
Event("", "", "", "", DateUtil.generateNowDateTime(), DateUtil.generateNowDateTime())
val EVENT_SELECTION_INIT = Event("", "", "", "", LocalDateTime.MIN, LocalDateTime.MAX)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.LocalTime
import javax.inject.Inject

Expand Down Expand Up @@ -150,7 +151,7 @@ class SurveyFormRegistrationViewModel @Inject constructor(
clearSurveyQuestionState()
}

private fun clearSurveyQuestionState() { _surveyQuestion.value = EMPTY }
private fun clearSurveyQuestionState() { _surveyQuestion.value = "" }

private fun isNotValidSurveyQuestion() = _surveyQuestion.value.isBlank()

Expand All @@ -177,8 +178,6 @@ class SurveyFormRegistrationViewModel @Inject constructor(
}

companion object {
const val EMPTY = ""
val EVENT_SELECTION_INIT: Event =
Event("", "", "", "", DateUtil.generateNowDateTime(), DateUtil.generateNowDateTime())
val EVENT_SELECTION_INIT = Event("", "", "", "", LocalDateTime.MIN, LocalDateTime.MAX)
}
}

0 comments on commit 3a4c7d1

Please sign in to comment.