summaryrefslogtreecommitdiff
path: root/src/pack.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-12-09 09:44:03 -0800
committerRussell Belfer <rb@github.com>2013-12-11 10:57:50 -0800
commit26c1cb91beccb44425864bd233ed0e35f5801868 (patch)
tree378f665d0adebca36a14a590f2103f2e5cd6c9ac /src/pack.c
parentf10d7a368fa4af28b1e6f082349ffa4f62b3c00e (diff)
downloadlibgit2-26c1cb91beccb44425864bd233ed0e35f5801868.tar.gz
One more rename/cleanup for callback err functions
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pack.c b/src/pack.c
index fd53ef49a..23fcf3530 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -1088,10 +1088,8 @@ int git_pack_foreach_entry(
}
for (i = 0; i < p->num_objects; i++)
- if ((error = cb(p->oids[i], data)) != 0) {
- GITERR_CALLBACK(error);
- break;
- }
+ if ((error = cb(p->oids[i], data)) != 0)
+ return giterr_set_after_callback(error);
return error;
}