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 cfc9a53 commit 4dadc6c
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 @@ -45,7 +45,7 @@ struct WeakSet<Element> where Element: AnyObject, Element: Hashable {
}

var count: Int {
elements.lockedRead { $0 }.count
elements.lockedRead { $0.count }
}

mutating func update(_ element: Element) {
Expand Down

0 comments on commit 4dadc6c

Please sign in to comment.