Skip to content

Commit 7871a1f

Browse files
committed
Fix SwiftFormat
1 parent 20507e8 commit 7871a1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ struct PollOptionView: View {
198198
HStack(alignment: .top, spacing: checkboxButtonSpacing) {
199199
if !viewModel.poll.isClosed {
200200
Button {
201-
togglePollVote()
201+
togglePollVote()
202202
} label: {
203203
if viewModel.optionVotedByCurrentUser(option) {
204204
Image(systemName: "checkmark.circle.fill")

Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public class PollAttachmentViewModel: ObservableObject, PollControllerDelegate {
219219
///
220220
/// - Note: When multiple options have the highest vote count, this function returns false.
221221
public func hasMostVotes(for option: PollOption) -> Bool {
222-
return poll.isOptionWithMostVotes(option)
222+
poll.isOptionWithMostVotes(option)
223223
}
224224

225225
// MARK: - PollControllerDelegate

0 commit comments

Comments
 (0)