Skip to content

Commit a417594

Browse files
committed
Refactor: UserLocalDataSource 내 saveUserProfile의 suspend 키워드 제거
1 parent b9e2e88 commit a417594

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

data/src/main/java/com/threegap/bitnagil/data/user/datasource/UserLocalDataSource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import kotlinx.coroutines.flow.StateFlow
55

66
interface UserLocalDataSource {
77
val userProfile: StateFlow<UserProfile?>
8-
suspend fun saveUserProfile(userProfile: UserProfile)
8+
fun saveUserProfile(userProfile: UserProfile)
99
fun clearCache()
1010
}

data/src/main/java/com/threegap/bitnagil/data/user/datasourceImpl/UserLocalDataSourceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class UserLocalDataSourceImpl @Inject constructor() : UserLocalDataSource {
1414
private val _userProfile = MutableStateFlow<UserProfile?>(null)
1515
override val userProfile: StateFlow<UserProfile?> = _userProfile.asStateFlow()
1616

17-
override suspend fun saveUserProfile(userProfile: UserProfile) {
17+
override fun saveUserProfile(userProfile: UserProfile) {
1818
_userProfile.update { userProfile }
1919
}
2020

0 commit comments

Comments
 (0)