remove unsafe
This commit is contained in:
parent
b9e05286a2
commit
7bc8cd01e8
@ -113,7 +113,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 {
|
if let value = Mirror(reflecting: option).children.first?.value as? AnyObject {
|
||||||
return value
|
return value
|
||||||
} else {
|
} else {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user