mirror of
https://github.com/nlohmann/json.git
synced 2026-05-16 03:05:23 +00:00
♻️ remove unnecessary if
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -6023,10 +6023,7 @@ struct external_constructor<value_t::array>
|
||||
j.m_data.m_type = value_t::array;
|
||||
j.m_data.m_value = value_t::array;
|
||||
j.m_data.m_value.array->resize(arr.size());
|
||||
if (arr.size() > 0)
|
||||
{
|
||||
std::copy(std::begin(arr), std::end(arr), j.m_data.m_value.array->begin());
|
||||
}
|
||||
std::copy(std::begin(arr), std::end(arr), j.m_data.m_value.array->begin());
|
||||
j.set_parents();
|
||||
j.assert_invariant();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user