Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-12-07 03:42:20 +0400
committerRussell Belfer <rb@github.com>2013-12-11 22:57:50 +0400
commitc7b3e1b32040d05f3cb996d754a28af3b4d06d0b (patch)
treec2cb268aeb8b8dc244970034d1d220867c6ed62b /src/submodule.c
parent60058018dcadbaa1f70281c9d29faf1e46d3a87c (diff)
Some callback error check style cleanups
I find this easier to read...
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c4
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);