File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,7 @@ bool StyledWriter::isMultineArray(const Value& value) {
489
489
childValues_.clear ();
490
490
for (int index = 0 ; index < size && !isMultiLine; ++index ) {
491
491
const Value& childValue = value[index ];
492
- isMultiLine =
493
- isMultiLine || ((childValue.isArray () || childValue.isObject ()) &&
492
+ isMultiLine = ((childValue.isArray () || childValue.isObject ()) &&
494
493
childValue.size () > 0 );
495
494
}
496
495
if (!isMultiLine) // check if line length > max line length
@@ -709,8 +708,7 @@ bool StyledStreamWriter::isMultineArray(const Value& value) {
709
708
childValues_.clear ();
710
709
for (int index = 0 ; index < size && !isMultiLine; ++index ) {
711
710
const Value& childValue = value[index ];
712
- isMultiLine =
713
- isMultiLine || ((childValue.isArray () || childValue.isObject ()) &&
711
+ isMultiLine = ((childValue.isArray () || childValue.isObject ()) &&
714
712
childValue.size () > 0 );
715
713
}
716
714
if (!isMultiLine) // check if line length > max line length
@@ -989,8 +987,7 @@ bool BuiltStyledStreamWriter::isMultineArray(Value const& value) {
989
987
childValues_.clear ();
990
988
for (int index = 0 ; index < size && !isMultiLine; ++index ) {
991
989
Value const & childValue = value[index ];
992
- isMultiLine =
993
- isMultiLine || ((childValue.isArray () || childValue.isObject ()) &&
990
+ isMultiLine = ((childValue.isArray () || childValue.isObject ()) &&
994
991
childValue.size () > 0 );
995
992
}
996
993
if (!isMultiLine) // check if line length > max line length
You can’t perform that action at this time.
0 commit comments