Skip to content

Commit

Permalink
chore/#71: ktlint format
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Dec 27, 2023
1 parent a4b1818 commit 64af04f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.suwiki.core.android

import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import com.suwiki.core.model.exception.UnknownException

fun recordException(
e: Throwable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import javax.inject.Inject
class LectureEvaluationViewModel @Inject constructor(
private val getUserInfoUseCase: GetUserInfoUseCase,
) : ContainerHost<LectureEvaluationState, LectureEvaluationSideEffect>, ViewModel() {
override val container: Container<LectureEvaluationState, LectureEvaluationSideEffect> = container(LectureEvaluationState())
override val container: Container<LectureEvaluationState, LectureEvaluationSideEffect> =
container(LectureEvaluationState())

private var isLoggedIn: Boolean = false
private var isFirstVisit: Boolean = true

// TODO 로그인 이후 네트워크 연결이 없는 상태에서 잘 동작하는지 테스트
private suspend fun checkLoggedIn() {
isLoggedIn = getUserInfoUseCase().catch { }.lastOrNull()?.isLoggedIn == true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package com.suwiki.feature.login.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import com.suwiki.domain.login.usecase.LoginUseCase
import com.suwiki.feature.login.LoginRoute
import com.suwiki.feature.login.LoginViewModel

fun NavController.navigateLogin() {
navigate(LoginRoute.route)
Expand Down

0 comments on commit 64af04f

Please sign in to comment.