Skip to content

Commit 5df995c

Browse files
author
Joe Newton
committed
Added missing braces around log and breakpoint hook function
1 parent e6158c2 commit 5df995c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

KeyValueObservation/SRDKeyValueObservation.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ - (void)invalidate {
8585
NSObject * __strong object = _object;
8686

8787
#if DEBUG
88-
if (object == nil && _unownedObject != nil)
88+
if (object == nil && _unownedObject != nil) {
8989
NSLog(@"-[%@ %@] called after the observed object was deallocated. Set a symbolic breakpoint for 'srd_invalidate_kvo_after_free' to debug", self.description, NSStringFromSelector(_cmd));
9090
srd_invalidate_kvo_after_free();
91+
}
9192
#endif // #if DEBUG
9293

9394
if (object != nil) {

0 commit comments

Comments
 (0)