Skip to content

Commit

Permalink
SwiftLint (Codacy)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Sep 12, 2024
1 parent be6abfc commit b7ada07
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/PubNub/Subscription/SubscriptionSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ class SubscriptionSession: EventEmitter, StatusEmitter {
presenceOnly ? [$0.presenceChannelName] : [$0, $0.presenceChannelName]
}
internalUnsubscribe(
from: globalChannelSubscriptions.lockedRead { $0 }.compactMap { channelNamesToUnsubscribe.contains($0.key) ? $0.value : nil },
and: globalGroupSubscriptions.lockedRead { $0 }.compactMap { groupNamesToUnsubscribe.contains($0.key) ? $0.value : nil },
from: globalChannelSubscriptions.lockedRead { $0 }.compactMap {
channelNamesToUnsubscribe.contains($0.key) ? $0.value : nil
},
and: globalGroupSubscriptions.lockedRead { $0 }.compactMap {
groupNamesToUnsubscribe.contains($0.key) ? $0.value : nil
},
presenceOnly: presenceOnly
)

Expand Down

0 comments on commit b7ada07

Please sign in to comment.