Skip to content

Commit

Permalink
๐ŸŽจ :: ์ฝ”๋“œ Formatting ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
yongbeomkwak committed Aug 3, 2024
1 parent 4d5e103 commit 3025e0c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ public struct FetchTokenUseCaseImpl: FetchTokenUseCase {
.do(onSuccess: { _ in
NotificationCenter.default.post(name: .loginStateDidChanged, object: true)
})

}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import AuthDomainInterface
import BaseDomainInterface
import Foundation
import RxSwift
import Utility
import Foundation

public struct LogoutUseCaseImpl: LogoutUseCase {
private let authRepository: any AuthRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ final class LikeStorageReactor: Reactor {

let updateIsLoggedInMutation = storageCommonService.loginStateDidChangedEvent
.withUnretained(self)
.flatMap { (owner, notification) -> Observable<Mutation> in
guard let isLoggedIn = notification.object as? Bool else { return.empty() }
.flatMap { owner, notification -> Observable<Mutation> in
guard let isLoggedIn = notification.object as? Bool else { return .empty() }
return .concat(
owner.updateIsLoggedIn(isLoggedIn),
owner.fetchDataSource()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ final class ListStorageReactor: Reactor {

let updateIsLoggedInMutation = storageCommonService.loginStateDidChangedEvent
.withUnretained(self)
.flatMap { (owner, notification) -> Observable<Mutation> in
guard let isLoggedIn = notification.object as? Bool else { return.empty() }
.flatMap { owner, notification -> Observable<Mutation> in
guard let isLoggedIn = notification.object as? Bool else { return .empty() }
return .concat(
owner.updateIsLoggedIn(isLoggedIn),
owner.fetchDataSource()
)
}

let playlistRefreshMutation = storageCommonService.playlistRefreshEvent
.withUnretained(self)
.flatMap { owner, _ -> Observable<Mutation> in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ final class StorageReactor: Reactor {

let updateIsLoggedInMutation = storageCommonService.loginStateDidChangedEvent
.flatMap { notification -> Observable<Mutation> in
guard let isLoggedIn = notification.object as? Bool else { return.empty() }
guard let isLoggedIn = notification.object as? Bool else { return .empty() }
return .just(.updateIsLoggedIn(isLoggedIn))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class DefaultStorageCommonService: StorageCommonService {
let isEditingState: BehaviorSubject<Bool>
let loginStateDidChangedEvent: Observable<Notification>
let playlistRefreshEvent: Observable<Notification>

init() {
let notificationCenter = NotificationCenter.default
isEditingState = .init(value: false)
Expand Down

0 comments on commit 3025e0c

Please sign in to comment.