Skip to content

Commit 05b9db7

Browse files
committed
style swiftformat 적용
1 parent af47783 commit 05b9db7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Projects/Features/LiveStreamFeature/Sources/Player/ViewModels/LiveStreamViewModel.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public final class LiveStreamViewModel: ViewModel {
5656
let output = Output()
5757

5858
input.expandButtonDidTap
59-
.compactMap { $0 }
59+
.compactMap(\.self)
6060
.sink {
6161
let nextValue = !output.isExpanded.value
6262
output.isExpanded.send(nextValue)
@@ -66,7 +66,7 @@ public final class LiveStreamViewModel: ViewModel {
6666
.store(in: &subscription)
6767

6868
input.sliderValueDidChange
69-
.compactMap { $0 }
69+
.compactMap(\.self)
7070
.map { Double($0) }
7171
.sink {
7272
input.autoDissmissDidRegister.send()
@@ -75,14 +75,14 @@ public final class LiveStreamViewModel: ViewModel {
7575
.store(in: &subscription)
7676

7777
input.playerStateDidChange
78-
.compactMap { $0 }
78+
.compactMap(\.self)
7979
.sink { flag in
8080
output.isPlaying.send(flag)
8181
}
8282
.store(in: &subscription)
8383

8484
input.playerGestureDidTap
85-
.compactMap { $0 }
85+
.compactMap(\.self)
8686
.sink { _ in
8787
let nextValue1 = !output.isShowedPlayerControl.value
8888
output.isShowedPlayerControl.send(nextValue1)
@@ -100,7 +100,7 @@ public final class LiveStreamViewModel: ViewModel {
100100
.store(in: &subscription)
101101

102102
input.playButtonDidTap
103-
.compactMap { $0 }
103+
.compactMap(\.self)
104104
.sink { _ in
105105
input.autoDissmissDidRegister.send()
106106
output.isPlaying.send(!output.isPlaying.value)

Projects/Modules/ChatSoketModule/Sources/WebSocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class WebSocket: NSObject {
4242
startPing()
4343
}
4444

45-
public func send(data: ChatMessage) {
45+
public func send(data _: ChatMessage) {
4646
guard let data = try? encoder.encode(data) else { return }
4747

4848
let taskMessage = URLSessionWebSocketTask.Message.data(data)

0 commit comments

Comments
 (0)