File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class NativePusher {
19
19
20
20
// Identifies a Pusher app.
21
21
// This app should have push notifications enabled.
22
- private var pusherAppKey : String ?
22
+ private var pusherAppKey : String ? = nil
23
23
24
24
public func setPusherAppKey( pusherAppKey: String ) {
25
25
self . pusherAppKey = pusherAppKey
@@ -29,15 +29,13 @@ public class NativePusher {
29
29
// The id issued to this app instance by Pusher.
30
30
// We get it upon registration.
31
31
// We use it to identify ourselves when subscribing/unsubscribing.
32
- private var clientId : String ?
32
+ private var clientId : String ? = nil
33
33
34
34
// Queued actions to perform when the client is registered.
35
- private var outbox : Array < ( String , SubscriptionChange ) >
35
+ private var outbox : Array < ( String , SubscriptionChange ) > = [ ]
36
36
37
37
// Normal clients should access the shared instance via Pusher.nativePusher().
38
38
public init ( ) {
39
- clientId = nil
40
- outbox = [ ]
41
39
}
42
40
43
41
/**
You can’t perform that action at this time.
0 commit comments