Skip to content

Commit 40dad0a

Browse files
authored
fix (#23287)
1 parent a368082 commit 40dad0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eng/tools/generator/cmd/v2/common/cmdProcessor.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ func ExecuteGoGenerate(path string) error {
6565
lines := strings.Split(stderrBuffer.String(), "\n")
6666
newLines := make([]string, 0, len(lines))
6767
for _, line := range lines {
68-
if !strings.HasPrefix(strings.TrimSpace(line), "go: downloading") {
68+
l := strings.TrimSpace(line)
69+
if len(l) == 0 {
70+
continue
71+
}
72+
if !strings.HasPrefix(l, "go: downloading") {
6973
newLines = append(newLines, line)
7074
}
7175
}

0 commit comments

Comments
 (0)