From 560e3899d8ffe8952cd61067c3b42a4a0b885638 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 24 Jun 2019 10:09:25 +0200 Subject: Fix formatting --- json/jsonparse.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'json/jsonparse.cc') diff --git a/json/jsonparse.cc b/json/jsonparse.cc index 1a98f53f..0f229aca 100644 --- a/json/jsonparse.cc +++ b/json/jsonparse.cc @@ -750,15 +750,15 @@ void json_import(Context *ctx, string modname, JsonNode *node) bool upto = false; int start_offset = 0; if (here->data_dict.count("upto") != 0) { - JsonNode *val = here->data_dict.at("upto"); - if (val->type == 'N') - upto = val->data_number != 0; - } - if (here->data_dict.count("offset") != 0) { - JsonNode *val = here->data_dict.at("offset"); - if (val->type == 'N') - start_offset = val->data_number; - } + JsonNode *val = here->data_dict.at("upto"); + if (val->type == 'N') + upto = val->data_number != 0; + } + if (here->data_dict.count("offset") != 0) { + JsonNode *val = here->data_dict.at("offset"); + if (val->type == 'N') + start_offset = val->data_number; + } if (here->data_dict.count("bits")) { JsonNode *bits = here->data_dict.at("bits"); assert(bits->type == 'A'); -- cgit v1.2.3