diff options
author | Russell Belfer <rb@github.com> | 2013-12-06 15:42:20 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-12-11 10:57:50 -0800 |
commit | c7b3e1b32040d05f3cb996d754a28af3b4d06d0b (patch) | |
tree | c2cb268aeb8b8dc244970034d1d220867c6ed62b /src/push.c | |
parent | 60058018dcadbaa1f70281c9d29faf1e46d3a87c (diff) | |
download | libgit2-c7b3e1b32040d05f3cb996d754a28af3b4d06d0b.tar.gz |
Some callback error check style cleanups
I find this easier to read...
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c index 428173397..8ebba15eb 100644 --- a/src/push.c +++ b/src/push.c @@ -659,8 +659,9 @@ int git_push_status_foreach(git_push *push, unsigned int i; git_vector_foreach(&push->status, i, status) { - GITERR_CHECK_ERROR( - GITERR_CALLBACK( cb(status->ref, status->msg, data) ) ); + int error = cb(status->ref, status->msg, data); + if (error) + return GITERR_CALLBACK(error); } return 0; |