From 0ef937394e6ead1e04ba76d5a40388c1444ee2f2 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Sun, 22 May 2022 00:50:42 -0400 Subject: [PATCH] fix ci error --- include/nlohmann/detail/input/binary_reader.hpp | 5 +---- single_include/nlohmann/json.hpp | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 1e50bb222..d259e0448 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -2249,10 +2249,7 @@ class binary_reader return sax->parse_error(chars_read, get_token_string(), parse_error::create(112, chars_read, exception_message(input_format, "ndarray can not be recursive", "size"), nullptr)); } - else - { - result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters - } + result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters } return is_error; } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 965cffcf8..5993ce32a 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -10732,10 +10732,7 @@ class binary_reader return sax->parse_error(chars_read, get_token_string(), parse_error::create(112, chars_read, exception_message(input_format, "ndarray can not be recursive", "size"), nullptr)); } - else - { - result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters - } + result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters } return is_error; }