Skip to content

Commit

Permalink
[chore] #303 ktlint check ๋ฐ˜์˜
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeha committed Jun 26, 2024
1 parent af68b3d commit 8539dce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import org.go.sopt.winey.util.binding.BindingActivity
import org.go.sopt.winey.util.context.hideKeyboard
import org.go.sopt.winey.util.context.snackBar
import org.go.sopt.winey.util.context.stringOf
import org.go.sopt.winey.util.state.InputError
import org.go.sopt.winey.util.state.InputUiState
import org.go.sopt.winey.util.state.UiState
import org.json.JSONException
import org.json.JSONObject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.go.sopt.winey.presentation.nickname

import android.renderscript.ScriptGroup.Input
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
Expand All @@ -23,7 +22,7 @@ import javax.inject.Inject

@HiltViewModel
class NicknameViewModel @Inject constructor(
private val authRepository: AuthRepository,
private val authRepository: AuthRepository
) : ViewModel() {
val _nickname = MutableStateFlow("")
private val nickname: String get() = _nickname.value
Expand Down Expand Up @@ -132,7 +131,7 @@ class NicknameViewModel @Inject constructor(

private fun <T> Flow<T>.mutableStateIn(
initialValue: T,
scope: CoroutineScope,
scope: CoroutineScope
): MutableStateFlow<T> {
val flow = MutableStateFlow(initialValue)
scope.launch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fun TextView.setNicknameHelperTextColor(inputUiState: InputUiState) {
fun TextView.setNicknameCounter(
prevScreenName: String,
inputNicknameLength: Int,
originalNicknameLength: Int,
originalNicknameLength: Int
) {
when (prevScreenName) {
STORY_SCREEN -> {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/go/sopt/winey/util/state/InputError.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.go.sopt.winey.util.state

sealed interface InputError {
enum class Nickname: InputError {
enum class Nickname : InputError {
BLANK_INPUT,
INVALID_CHAR,
UNCHECKED_DUPLICATION,
DUPLICATED
}

object Upload: InputError
object Upload : InputError
}

0 comments on commit 8539dce

Please sign in to comment.