diff options
author | Edward Thomson <ethomson@github.com> | 2016-03-21 17:19:24 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-03-24 15:59:49 -0400 |
commit | 9eb9e5fa87667b823f73265c88a87f314d47aaf7 (patch) | |
tree | b54b0c03de97dec5f6d63fd6816c2886cabd10f9 /src/diff.c | |
parent | d712c2b27f5589364dd0b602a3abc1dff31d54a0 (diff) | |
download | libgit2-9eb9e5fa87667b823f73265c88a87f314d47aaf7.tar.gz |
iterator: cleanups
Remove some unused functions, refactor some ugliness.
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/diff.c b/src/diff.c index 5b70998f4..64641daab 100644 --- a/src/diff.c +++ b/src/diff.c @@ -1229,9 +1229,8 @@ int git_diff__from_iterators( /* make iterators have matching icase behavior */ if (DIFF_FLAG_IS_SET(diff, GIT_DIFF_IGNORE_CASE)) { - if ((error = git_iterator_set_ignore_case(old_iter, true)) < 0 || - (error = git_iterator_set_ignore_case(new_iter, true)) < 0) - goto cleanup; + git_iterator_set_ignore_case(old_iter, true); + git_iterator_set_ignore_case(new_iter, true); } /* finish initialization */ |