From b7ada07522fd87905d78abd8284fbf5224d57e13 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Thu, 12 Sep 2024 14:28:24 +0200 Subject: [PATCH] SwiftLint (Codacy) --- Sources/PubNub/Subscription/SubscriptionSession.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/PubNub/Subscription/SubscriptionSession.swift b/Sources/PubNub/Subscription/SubscriptionSession.swift index 35b9fff0..3ecb7bd7 100644 --- a/Sources/PubNub/Subscription/SubscriptionSession.swift +++ b/Sources/PubNub/Subscription/SubscriptionSession.swift @@ -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 )