Skip to content

Commit dd05fcd

Browse files
jameshfisherhamchapman
authored andcommitted
initializers
1 parent f892773 commit dd05fcd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Source/NativePusher.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class NativePusher {
1919

2020
// Identifies a Pusher app.
2121
// This app should have push notifications enabled.
22-
private var pusherAppKey: String?
22+
private var pusherAppKey: String? = nil
2323

2424
public func setPusherAppKey(pusherAppKey: String) {
2525
self.pusherAppKey = pusherAppKey
@@ -29,15 +29,13 @@ public class NativePusher {
2929
// The id issued to this app instance by Pusher.
3030
// We get it upon registration.
3131
// We use it to identify ourselves when subscribing/unsubscribing.
32-
private var clientId: String?
32+
private var clientId: String? = nil
3333

3434
// Queued actions to perform when the client is registered.
35-
private var outbox: Array<(String, SubscriptionChange)>
35+
private var outbox: Array<(String, SubscriptionChange)> = []
3636

3737
// Normal clients should access the shared instance via Pusher.nativePusher().
3838
public init() {
39-
clientId = nil
40-
outbox = []
4139
}
4240

4341
/**

0 commit comments

Comments
 (0)