From ffd868e885070c5b8b81610c647be7c400a1ecf0 Mon Sep 17 00:00:00 2001 From: jguz-pubnub <102806147+jguz-pubnub@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:50:20 +0200 Subject: [PATCH] Update Sources/PubNub/Helpers/WeakBox.swift Co-authored-by: Serhii Mamontov --- Sources/PubNub/Helpers/WeakBox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PubNub/Helpers/WeakBox.swift b/Sources/PubNub/Helpers/WeakBox.swift index 93781f13..45b43b64 100644 --- a/Sources/PubNub/Helpers/WeakBox.swift +++ b/Sources/PubNub/Helpers/WeakBox.swift @@ -70,7 +70,7 @@ extension WeakSet: Collection { var endIndex: Set>.Index { return elements.lockedRead { $0.endIndex } } subscript(position: Set>.Index) -> Element? { - elements.lockedRead { $0[position] }.underlying + elements.lockedRead { $0[position].underlying } } func index(after index: Set>.Index) -> Set>.Index {