Skip to content

Commit b77619f

Browse files
committed
Use strongSelf in closure
1 parent 7c003de commit b77619f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Shared/Storage/Storage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public final class Storage<T> {
5656
private func subscribeToChanges(in storage: HybridStorage<T>) {
5757
storage.storageObservationRegistry.addObservation { [weak self] _, change in
5858
guard let strongSelf = self else { return }
59-
self?.storageObservationRegistry.notifyObservers(about: change, in: strongSelf)
59+
strongSelf.storageObservationRegistry.notifyObservers(about: change, in: strongSelf)
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)