Skip to content

Commit 45b5852

Browse files
committed
refactor
1 parent c608bf8 commit 45b5852

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

SocketIOClientSwift/SocketIOClientOption.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
8888
}
8989

9090
static func getSocketIOOptionValue(option: SocketIOClientOption) -> AnyObject? {
91-
if let value = Mirror(reflecting: option).children.first?.value as? AnyObject {
92-
return value
93-
} else {
94-
return nil
95-
}
91+
return Mirror(reflecting: option).children.first?.value as? AnyObject
9692
}
9793

9894
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {

0 commit comments

Comments
 (0)