Skip to content

Commit

Permalink
[CHORE] #125 : 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 16, 2024
1 parent 12f3cb1 commit 56b532e
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,11 @@ class EventRegistrationViewModel @Inject constructor(
MutableStateFlow(generateNowTime().plusHours(1))
val eventEndTime = _eventEndTime.asStateFlow()

fun setEventTitle(eventTitle: String) {
_eventTitle.value = eventTitle
}
fun setEventTitle(eventTitle: String) { _eventTitle.value = eventTitle }

fun setEventContent(eventContent: String) {
_eventContent.value = eventContent
}
fun setEventContent(eventContent: String) { _eventContent.value = eventContent }

fun setEventLocation(eventLocation: String) {
_eventLocation.value = eventLocation
}
fun setEventLocation(eventLocation: String) { _eventLocation.value = eventLocation }

fun setEventStartDate(eventDate: LocalDate) {
if (!isValidStartDate(eventDate)) {
Expand All @@ -74,9 +68,7 @@ class EventRegistrationViewModel @Inject constructor(
_eventStartDate.value = eventDate
}

fun setEventStartTime(eventTime: LocalTime) {
_eventStartTime.value = eventTime
}
fun setEventStartTime(eventTime: LocalTime) { _eventStartTime.value = eventTime }

fun setEventEndDate(eventDate: LocalDate) {
if (!isValidEndDate(eventDate)) {
Expand Down

0 comments on commit 56b532e

Please sign in to comment.