Skip to content

Commit 5665292

Browse files
jameshfisherhamchapman
authored andcommitted
remove redundant check
1 parent dd05fcd commit 5665292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/NativePusher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class NativePusher {
119119
private func tryFlushOutbox() {
120120
switch (self.pusherAppKey, self.clientId) {
121121
case (.Some(let pusherAppKey), .Some(let clientId)):
122-
if (self.pusherAppKey != nil && self.clientId != nil && 0 < outbox.count) {
122+
if (0 < outbox.count) {
123123
let (interest,change) = outbox.removeAtIndex(0)
124124
modifySubscription(pusherAppKey, clientId: clientId, interest: interest, change: change) {
125125
self.tryFlushOutbox()

0 commit comments

Comments
 (0)