summaryrefslogtreecommitdiff
path: root/src/ignore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ignore.c')
-rw-r--r--src/ignore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ignore.c b/src/ignore.c
index a3bf0a282..4cbc55d4b 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -168,9 +168,9 @@ static int ignore_lookup_in_rules(
git_attr_fnmatch *match;
git_vector_rforeach(rules, j, match) {
- if (git_attr_fnmatch__match(match, path) == GIT_SUCCESS) {
+ if (git_attr_fnmatch__match(match, path)) {
*ignored = ((match->flags & GIT_ATTR_FNMATCH_NEGATIVE) == 0);
- return GIT_SUCCESS;
+ return 0;
}
}