File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public typealias PusherUserInfoObject = [String: AnyObject]
160160 - returns: The PusherPresenceChannelMember object for the given user id
161161 */
162162 open func findMember( userId: String ) -> PusherPresenceChannelMember ? {
163- return self . members. filter ( { $0. userId == userId } ) . first
163+ return self . members. first ( where : { $0. userId == userId } )
164164 }
165165
166166 /**
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ import NWWebSocket
475475
476476 chan. auth = nil
477477
478- while chan. unsentEvents. count > 0 {
478+ while ! chan. unsentEvents. isEmpty {
479479 if let pusherEvent = chan. unsentEvents. popLast ( ) {
480480 chan. trigger ( eventName: pusherEvent. name, data: pusherEvent. data)
481481 }
You can’t perform that action at this time.
0 commit comments