Skip to content

Commit 1b98456

Browse files
committed
fix lints [skip ci]
1 parent da29c6d commit 1b98456

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

app/src/main/java/com/hoc/comicapp/ui/register/RegisterVM.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ class RegisterVM(
8282
when (it) {
8383
PartialChange.RegisterSuccess -> sendEvent(SingleEvent.RegisterSuccess)
8484
is PartialChange.RegisterFailure -> sendEvent(SingleEvent.RegisterFailure(it.error))
85+
is PartialChange.AvatarChanged -> return@doOnNext
86+
is PartialChange.EmailChanged -> return@doOnNext
87+
is PartialChange.EmailError -> return@doOnNext
88+
is PartialChange.FullNameChanged -> return@doOnNext
89+
is PartialChange.FullNameError -> return@doOnNext
90+
PartialChange.Loading -> return@doOnNext
91+
is PartialChange.PasswordChanged -> return@doOnNext
92+
is PartialChange.PasswordError -> return@doOnNext
8593
}
8694
}
8795
}
@@ -142,7 +150,7 @@ class RegisterVM(
142150
private fun isValidUser(user: User): Boolean {
143151
val (email, password, fullName) = user
144152
return getEmailError(email) === null &&
145-
getPasswordError(password) === null &&
146-
getFullNameError(fullName) === null
153+
getPasswordError(password) === null &&
154+
getFullNameError(fullName) === null
147155
}
148156
}

0 commit comments

Comments
 (0)