Skip to content

Commit 8fed755

Browse files
committed
Nullability annotations
1 parent 155e441 commit 8fed755

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Classes/git/PBGitRepositoryWatcher.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
//
1010

1111
#import <Foundation/Foundation.h>
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
1215
@class PBGitRepository;
1316

1417
typedef NS_ENUM(NSUInteger, PBGitRepositoryWatcherEventType) {
@@ -31,3 +34,5 @@ extern NSString *kPBGitRepositoryEventPathsUserInfoKey;
3134
- (void) stop;
3235

3336
@end
37+
38+
NS_ASSUME_NONNULL_END

Classes/git/PBGitRepositoryWatcher.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ void PBGitRepositoryWatcherCallback(ConstFSEventStreamRef streamRef,
8585
@implementation PBGitRepositoryWatcher
8686

8787
- (instancetype) initWithRepository:(PBGitRepository *)theRepository {
88+
NSParameterAssert(theRepository != nil);
89+
8890
self = [super init];
8991
if (!self) {
9092
return nil;

0 commit comments

Comments
 (0)