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? {
|
static func getSocketIOOptionValue(option: SocketIOClientOption) -> AnyObject? {
|
||||||
if let value = Mirror(reflecting: option).children.first?.value as? AnyObject {
|
return Mirror(reflecting: option).children.first?.value as? AnyObject
|
||||||
return value
|
|
||||||
} else {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {
|
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user