mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
remove unnecessary checks
This commit is contained in:
parent
ed59a5c248
commit
cdcdb4cf71
@ -453,7 +453,7 @@ void PrettyBlockOutputFormat::writeValueWithPadding(
|
||||
value_width = format_settings.pretty.max_value_width;
|
||||
has_break_line = false;
|
||||
}
|
||||
else if (!has_break_line || !format_settings.pretty.preserve_border_for_multiline_string)
|
||||
else if (!has_break_line)
|
||||
value += ' ';
|
||||
|
||||
auto write_padding = [&]()
|
||||
@ -478,7 +478,7 @@ void PrettyBlockOutputFormat::writeValueWithPadding(
|
||||
write_padding();
|
||||
}
|
||||
|
||||
if (has_break_line && format_settings.pretty.preserve_border_for_multiline_string)
|
||||
if (has_break_line)
|
||||
writeString("…", out);
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ void PrettyCompactBlockOutputFormat::writeRow(
|
||||
writeReadableNumberTip(chunk);
|
||||
writeCString("\n", out);
|
||||
|
||||
if (has_transferred_row && format_settings.pretty.preserve_border_for_multiline_string)
|
||||
if (has_transferred_row)
|
||||
writeTransferredRow(max_widths, header, transferred_row, cut_to_width, false);
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,7 @@ void PrettySpaceBlockOutputFormat::writeChunk(const Chunk & chunk, PortKind port
|
||||
writeReadableNumberTip(chunk);
|
||||
writeChar('\n', out);
|
||||
|
||||
if (has_transferred_row && format_settings.pretty.preserve_border_for_multiline_string)
|
||||
if (has_transferred_row)
|
||||
writeTransferredRow(max_widths, header, transferred_row, cut_to_width, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user