8000 Explicit comparison with `nil` · libgit2/objective-git@af07357 · GitHub
[go: up one dir, main page]

Skip to content

Commit af07357

Browse files
committed
Explicit comparison with nil
1 parent e03bee9 commit af07357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ObjectiveGit/GTCheckoutOptions.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ static int GTCheckoutNotifyCallback(git_checkout_notify_t why, const char *path,
8080
- (git_checkout_options *)git_checkoutOptions {
8181
_git_checkoutOptions.checkout_strategy = self.strategy;
8282

83-
if (self.progressBlock) {
83+
if (self.progressBlock != nil) {
8484
_git_checkoutOptions.progress_cb = GTCheckoutProgressCallback;
8585
_git_checkoutOptions.progress_payload = (__bridge void *)self.progressBlock;
8686
}
8787

88-
if (self.notifyBlock) {
88+
if (self.notifyBlock != nil) {
8989
_git_checkoutOptions.notify_cb = GTCheckoutNotifyCallback;
9090
_git_checkoutOptions.notify_flags = self.notifyFlags;
9191
_git_checkoutOptions.notify_payload = (__bridge void *)self.notifyBlock;

0 commit comments

Comments
 (0)
0