File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ opt_in_rules:
8
8
- anyobject_protocol
9
9
- closure_end_indentation
10
10
- closure_spacing
11
+ - explicit_init
11
12
- vertical_whitespace_between_cases
12
13
- vertical_whitespace_closing_braces
13
14
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ public typealias PusherUserInfoObject = [String: AnyObject]
55
55
}
56
56
} else {
57
57
if let userInfo = memberJSON [ Constants . JSONKeys. userInfo] as? PusherUserInfoObject {
58
- member = PusherPresenceChannelMember ( userId: String . init ( describing: memberJSON [ Constants . JSONKeys. userId] !) ,
58
+ member = PusherPresenceChannelMember ( userId: String ( describing: memberJSON [ Constants . JSONKeys. userId] !) ,
59
59
userInfo: userInfo as AnyObject ? )
60
60
} else {
61
- member = PusherPresenceChannelMember ( userId: String . init ( describing: memberJSON [ Constants . JSONKeys. userId] !) )
61
+ member = PusherPresenceChannelMember ( userId: String ( describing: memberJSON [ Constants . JSONKeys. userId] !) )
62
62
}
63
63
}
64
64
members. append ( member)
@@ -97,7 +97,7 @@ public typealias PusherUserInfoObject = [String: AnyObject]
97
97
if let userId = memberJSON [ Constants . JSONKeys. userId] as? String {
98
98
id = userId
99
99
} else {
100
- id = String . init ( describing: memberJSON [ Constants . JSONKeys. userId] !)
100
+ id = String ( describing: memberJSON [ Constants . JSONKeys. userId] !)
101
101
}
102
102
103
103
guard let index = self . members. firstIndex ( where: { $0. userId == id } ) else {
@@ -122,7 +122,7 @@ public typealias PusherUserInfoObject = [String: AnyObject]
122
122
return
123
123
}
124
124
125
- self . myId = String . init ( describing: userId)
125
+ self . myId = String ( describing: userId)
126
126
}
127
127
128
128
/**
You can’t perform that action at this time.
0 commit comments