refactor again

This commit is contained in:
Erik 2015-11-15 11:46:02 -05:00
parent 6e21fba469
commit 9aec259d67

View File

@ -108,7 +108,7 @@ public func ==(lhs: SocketIOClientOption, rhs: SocketIOClientOption) -> Bool {
extension Set where Element: ClientOption { extension Set where Element: ClientOption {
mutating func insertIgnore(element: Element) { mutating func insertIgnore(element: Element) {
if !contains({$0.description == element.description}) { if !contains(element) {
insert(element) insert(element)
} }
} }