Skip to content

Commit 9aec259

Browse files
committed
refactor again
1 parent 6e21fba commit 9aec259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SocketIOClientSwift/SocketIOClientOption.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public func ==(lhs: SocketIOClientOption, rhs: SocketIOClientOption) -> Bool {
108108

109109
extension Set where Element: ClientOption {
110110
mutating func insertIgnore(element: Element) {
111-
if !contains({$0.description == element.description}) {
111+
if !contains(element) {
112112
insert(element)
113113
}
114114
}

0 commit comments

Comments
 (0)