diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-03-14 11:07:14 -0700 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-14 11:07:14 -0700 |
| commit | ab43ad2fd822504446e7876d6352c968a74beb53 (patch) | |
| tree | f18b845bcfa83c72f4b4b3e1cedd0efb79f56691 /src/ignore.c | |
| parent | e3c475107045cb89c53c114716bafebc7538433f (diff) | |
| download | libgit2-ab43ad2fd822504446e7876d6352c968a74beb53.tar.gz | |
Convert attr and other files to new errors
This continues to add other files to the new error handling
style. I think the only real concerns here are that there are
a couple of error return cases that I have converted to asserts,
but I think that it was the correct thing to do given the new
error style.
Diffstat (limited to 'src/ignore.c')
| -rw-r--r-- | src/ignore.c | 4 |
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; } } |
