Skip to content

Commit

Permalink
Use strongSelf in closure
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymmarkov committed Aug 3, 2018
1 parent 7c003de commit b77619f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Storage/Storage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final class Storage<T> {
private func subscribeToChanges(in storage: HybridStorage<T>) {
storage.storageObservationRegistry.addObservation { [weak self] _, change in
guard let strongSelf = self else { return }
self?.storageObservationRegistry.notifyObservers(about: change, in: strongSelf)
strongSelf.storageObservationRegistry.notifyObservers(about: change, in: strongSelf)
}
}
}
Expand Down

0 comments on commit b77619f

Please sign in to comment.