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/status.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/status.c')
| -rw-r--r-- | src/status.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index d76617a72..d4a436283 100644 --- a/src/status.c +++ b/src/status.c @@ -392,9 +392,10 @@ int git_status_foreach_ext( status_entry->head_to_index->old_file.path : status_entry->index_to_workdir->old_file.path; - error = GITERR_CALLBACK( cb(path, status_entry->status, payload) ); - if (error) + if ((error = cb(path, status_entry->status, payload)) != 0) { + GITERR_CALLBACK(error); break; + } } git_status_list_free(status); |
