From 53855c14d40cdcb3d24beadcb945ac9809a8a48a Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Sun, 20 Feb 2022 20:55:24 -0500 Subject: [PATCH] remove the unwanted assert --- include/nlohmann/detail/output/binary_writer.hpp | 1 - single_include/nlohmann/json.hpp | 1 - 2 files changed, 2 deletions(-) diff --git a/include/nlohmann/detail/output/binary_writer.hpp b/include/nlohmann/detail/output/binary_writer.hpp index 0f994e89a..be6a00554 100644 --- a/include/nlohmann/detail/output/binary_writer.hpp +++ b/include/nlohmann/detail/output/binary_writer.hpp @@ -42,7 +42,6 @@ class binary_writer explicit binary_writer(output_adapter_t adapter, const bool is_bjdata_ = false) : oa(std::move(adapter)), is_bjdata(is_bjdata_) { JSON_ASSERT(oa); - JSON_ASSERT(is_bjdata); } /*! diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 92b916b3d..a1da57f7d 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -13866,7 +13866,6 @@ class binary_writer explicit binary_writer(output_adapter_t adapter, const bool is_bjdata_ = false) : oa(std::move(adapter)), is_bjdata(is_bjdata_) { JSON_ASSERT(oa); - JSON_ASSERT(is_bjdata); } /*!