fix: code format

This commit is contained in:
sunxiaojian 2021-04-29 19:24:03 +08:00
parent 1e5daf5a77
commit ca320c555a
1 changed files with 3 additions and 5 deletions

View File

@ -100,9 +100,7 @@ final class MastodonRegisterViewModel {
.eraseToAnyPublisher()
}
.switchToLatest()
.sink(receiveCompletion: { _ in
}, receiveValue: { [weak self] result in
.sink { [weak self] result in
guard let self = self else { return }
switch result {
case .success:
@ -111,7 +109,7 @@ final class MastodonRegisterViewModel {
case .failure:
break
}
})
}
.store(in: &disposeBag)
usernameValidateState