From c7b3e1b32040d05f3cb996d754a28af3b4d06d0b Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Fri, 6 Dec 2013 15:42:20 -0800 Subject: Some callback error check style cleanups I find this easier to read... --- src/push.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/push.c') 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; -- cgit v1.2.1