Skip to content

Commit 4f29c2b

Browse files
committed
Explicitly compare tag to nil, per style recommendation
1 parent 8f5730d commit 4f29c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTRepository.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static int GTRepositoryForeachTagCallback(const char *name, git_oid *oid, void *
457457
GTTag *tag = (GTTag *)[info->myself lookUpObjectByGitOid:oid objectType:GTObjectTypeTag error:NULL];
458458

459459
BOOL stop = NO;
460-
if (tag) {
460+
if (tag != nil) {
461461
info->block(tag, &stop);
462462
}
463463

0 commit comments

Comments
 (0)