Skip to content

Commit

Permalink
fix (#23287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alancere authored Aug 6, 2024
1 parent a368082 commit 40dad0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eng/tools/generator/cmd/v2/common/cmdProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ func ExecuteGoGenerate(path string) error {
lines := strings.Split(stderrBuffer.String(), "\n")
newLines := make([]string, 0, len(lines))
for _, line := range lines {
if !strings.HasPrefix(strings.TrimSpace(line), "go: downloading") {
l := strings.TrimSpace(line)
if len(l) == 0 {
continue
}
if !strings.HasPrefix(l, "go: downloading") {
newLines = append(newLines, line)
}
}
Expand Down

0 comments on commit 40dad0a

Please sign in to comment.