Skip to content

Commit 4ad06b8

Browse files
committed
Cosmetic modifications to [GTRepository shouldIgnoreFileURL:error:] based on feedback
1 parent 233527d commit 4ad06b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ObjectiveGit/GTRepository+Status.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,12 @@ - (BOOL)shouldFileBeIgnored:(NSURL *)fileURL success:(BOOL *)success error:(NSEr
126126
}
127127

128128
- (GTFileIgnoreState)shouldIgnoreFileURL:(NSURL *)fileURL error:(NSError **)error {
129-
BOOL success = false;
129+
BOOL success = NO;
130130
BOOL ignore = [self shouldFileBeIgnored:fileURL success:&success error:error];
131-
return ignore && success ? GTFileIgnoreStateShouldIgnore : (!ignore && success ? GTFileIgnoreStateShouldNotIgnore : GTFileIgnoreStateIgnoreCheckFailed);
131+
if (success) {
132+
return (ignore ? GTFileIgnoreStateShouldIgnore : GTFileIgnoreStateShouldNotIgnore);
133+
}
134+
return GTFileIgnoreStateIgnoreCheckFailed;
132135
}
133136

134137
@end

0 commit comments

Comments
 (0)