Skip to content

Commit

Permalink
Update Sources/PubNub/Helpers/WeakBox.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Mamontov <[email protected]>
  • Loading branch information
jguz-pubnub and parfeon authored Sep 12, 2024
1 parent 23f4fd6 commit ffd868e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PubNub/Helpers/WeakBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extension WeakSet: Collection {
var endIndex: Set<WeakBox<Element>>.Index { return elements.lockedRead { $0.endIndex } }

subscript(position: Set<WeakBox<Element>>.Index) -> Element? {
elements.lockedRead { $0[position] }.underlying
elements.lockedRead { $0[position].underlying }
}

func index(after index: Set<WeakBox<Element>>.Index) -> Set<WeakBox<Element>>.Index {
Expand Down

0 comments on commit ffd868e

Please sign in to comment.