summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 641c1c3)
raw | patch | inline | side by side (parent: 641c1c3)
author | Wilfried Goesgens <willi@arangodb.com> | |
Sun, 8 Oct 2017 11:52:15 +0000 (13:52 +0200) | ||
committer | Wilfried Goesgens <willi@arangodb.com> | |
Sun, 8 Oct 2017 11:52:15 +0000 (13:52 +0200) |
src/curl_json.c | patch | blob | history |
diff --git a/src/curl_json.c b/src/curl_json.c
index 07d575e54af1c3fe49a20fc92db9a95c7df172ac..a2f287a81668b824986b55f4c122c510034b15e5 100644 (file)
--- a/src/curl_json.c
+++ b/src/curl_json.c
@@ -288,11 +288,10 @@ static int cj_cb_string(void *ctx, const unsigned char *val, yajl_len_t len) {
} /* int cj_cb_string */
static int cj_cb_boolean(void *ctx, int boolVal) {
- if (boolVal) {
- return (cj_cb_number (ctx, "1", 1));
- } else {
- return (cj_cb_number (ctx, "0", 1));
- }
+ if (boolVal)
+ return cj_cb_number(ctx, "1", 1);
+ else
+ return cj_cb_number(ctx, "0", 1);
} /* int cj_cb_boolean */
static int cj_cb_end(void *ctx) {