sg: Print output, even if it's just one character (#29745)

This commit is contained in:
Thorsten Ball 2022-01-14 14:24:04 +01:00 committed by GitHub
parent 754811d06e
commit 0292a1648f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}