From 8e9ad346d92ee1c06a79dfc9f609b054931dd770 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 13 Jan 2019 13:00:54 +0100 Subject: [PATCH] :rotating_light: fixed another linter warning --- include/nlohmann/detail/input/binary_reader.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 2946611c..d2052234 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -820,7 +820,7 @@ class binary_reader */ bool get_cbor_object(const std::size_t len) { - if (not JSON_UNLIKELY(sax->start_object(len))) + if (JSON_UNLIKELY(not sax->start_object(len))) { return false; } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index d85f40f7..228f99ea 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -7273,7 +7273,7 @@ class binary_reader */ bool get_cbor_object(const std::size_t len) { - if (not JSON_UNLIKELY(sax->start_object(len))) + if (JSON_UNLIKELY(not sax->start_object(len))) { return false; }