diff options
author | Russell Belfer <rb@github.com> | 2013-12-07 03:42:20 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-12-11 22:57:50 +0400 |
commit | c7b3e1b32040d05f3cb996d754a28af3b4d06d0b (patch) | |
tree | c2cb268aeb8b8dc244970034d1d220867c6ed62b /src/submodule.c | |
parent | 60058018dcadbaa1f70281c9d29faf1e46d3a87c (diff) |
Some callback error check style cleanups
I find this easier to read...
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index e9d534ae8..5298302c7 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -168,8 +168,10 @@ int git_submodule_foreach( break; } - if ((error = GITERR_CALLBACK(callback(sm, sm->name, payload))) != 0) + if ((error = callback(sm, sm->name, payload)) != 0) { + GITERR_CALLBACK(error); break; + } }); git_vector_free(&seen); |