fix Codacy warning
This commit is contained in:
parent
3c820dd215
commit
02d8f926f0
@ -1922,7 +1922,7 @@ class binary_reader
|
|||||||
|
|
||||||
bool is_optimized = get_ubjson_size_type(size_and_type);
|
bool is_optimized = get_ubjson_size_type(size_and_type);
|
||||||
|
|
||||||
if (size_and_type.first != string_t::npos)
|
if (is_optimized && size_and_type.first != string_t::npos)
|
||||||
{
|
{
|
||||||
if (size_and_type.second != 0)
|
if (size_and_type.second != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -10298,7 +10298,7 @@ class binary_reader
|
|||||||
|
|
||||||
bool is_optimized = get_ubjson_size_type(size_and_type);
|
bool is_optimized = get_ubjson_size_type(size_and_type);
|
||||||
|
|
||||||
if (size_and_type.first != string_t::npos)
|
if (is_optimized && size_and_type.first != string_t::npos)
|
||||||
{
|
{
|
||||||
if (size_and_type.second != 0)
|
if (size_and_type.second != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user