summaryrefslogtreecommitdiff
path: root/src/remote.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-12-06 15:42:20 -0800
committerRussell Belfer <rb@github.com>2013-12-11 10:57:50 -0800
commitc7b3e1b32040d05f3cb996d754a28af3b4d06d0b (patch)
treec2cb268aeb8b8dc244970034d1d220867c6ed62b /src/remote.c
parent60058018dcadbaa1f70281c9d29faf1e46d3a87c (diff)
downloadlibgit2-c7b3e1b32040d05f3cb996d754a28af3b4d06d0b.tar.gz
Some callback error check style cleanups
I find this easier to read...
Diffstat (limited to 'src/remote.c')
-rw-r--r--src/remote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remote.c b/src/remote.c
index 307306d1a..d46364a81 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -1348,9 +1348,11 @@ static int rename_fetch_refspecs(
if (!remote->name ||
strcmp(git_buf_cstr(&base), spec->string)) {
- error = GITERR_CALLBACK( callback(spec->string, payload) );
- if (error)
+ if ((error = callback(spec->string, payload)) != 0) {
+ GITERR_CALLBACK(error);
break;
+ }
+
continue;
}