From e66c65b4e9626c6678327faa093a6fb02125742c Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 8 Oct 2017 13:52:15 +0200 Subject: [PATCH] style --- src/curl_json.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/curl_json.c b/src/curl_json.c index 07d575e5..a2f287a8 100644 --- 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) { -- 2.30.2