summaryrefslogtreecommitdiff
path: root/src/diff.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/diff.c
parent60058018dcadbaa1f70281c9d29faf1e46d3a87c (diff)
downloadlibgit2-c7b3e1b32040d05f3cb996d754a28af3b4d06d0b.tar.gz
Some callback error check style cleanups
I find this easier to read...
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 101426f6e..b7657e432 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1388,8 +1388,10 @@ int git_diff__paired_foreach(
i++; j++;
}
- if ((error = GITERR_CALLBACK( cb(h2i, i2w, payload) )) != 0)
+ if ((error = cb(h2i, i2w, payload)) != 0) {
+ GITERR_CALLBACK(error);
break;
+ }
}
/* restore case-insensitive delta sort */