mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
sg: Print output, even if it's just one character (#29745)
This commit is contained in:
parent
754811d06e
commit
0292a1648f
@ -84,7 +84,7 @@ func (l *Logger) writeLines(ctx context.Context) {
|
||||
// But since there *was* a newline, we need to flush,
|
||||
// but only if there is more than a newline or there
|
||||
// was already content.
|
||||
if len(line) != 1 || l.buf.Len() > 0 {
|
||||
if len(line) != 0 || l.buf.Len() > 0 {
|
||||
if err := l.bufLine(line); err != nil {
|
||||
break
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user