Maint: prefer empty string comparison

This commit is contained in:
Quentin McGaw (desktop)
2021-07-23 17:39:38 +00:00
parent 3c44214d01
commit b23eb8f29d
8 changed files with 10 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ func (l *looper) collectLines(stdout, stderr <-chan string, done chan<- struct{}
return
}
line, level := processLogLine(line)
if len(line) == 0 {
if line == "" {
continue // filtered out
}
if errLine {