refactor
This commit is contained in:
parent
c608bf8286
commit
45b5852e50
@ -88,11 +88,7 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
|
||||
}
|
||||
|
||||
static func getSocketIOOptionValue(option: SocketIOClientOption) -> AnyObject? {
|
||||
if let value = Mirror(reflecting: option).children.first?.value as? AnyObject {
|
||||
return value
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
return Mirror(reflecting: option).children.first?.value as? AnyObject
|
||||
}
|
||||
|
||||
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user