Skip to content

Commit 8e2f478

Browse files
committed
Make static method an instance method
1 parent c99f9a6 commit 8e2f478

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SocketIOClientSwift/SocketIOClientOption.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
8787
}
8888
}
8989

90-
static func getSocketIOOptionValue(option: SocketIOClientOption) -> AnyObject? {
91-
return Mirror(reflecting: option).children.first?.value as? AnyObject
90+
func getSocketIOOptionValue() -> AnyObject? {
91+
return Mirror(reflecting: self).children.first?.value as? AnyObject
9292
}
9393

9494
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {
@@ -107,7 +107,7 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
107107
let options = NSMutableDictionary()
108108

109109
for option in set {
110-
options[option.description] = getSocketIOOptionValue(option)
110+
options[option.description] = option.getSocketIOOptionValue()
111111
}
112112

113113
return options

0 commit comments

Comments
 (0)