Skip to content

Commit 2fd4db6

Browse files
committed
fix compiler error for pre 5.7 swift versions
1 parent 0862006 commit 2fd4db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/RediStack/RedisConnectionPool.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ extension RedisConnectionPool {
209209
// disallow subscriptions on all connections by default to enforce our management of PubSub state
210210
connection.allowSubscriptions = false
211211
connection.onUnexpectedClosure = { [weak self, weak connection] in
212-
guard let connection else { return }
212+
guard let connection = connection else { return }
213213
self?.configuration.onUnexpectedConnectionClose?(connection)
214214
}
215215
return connection

0 commit comments

Comments
 (0)