Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alancere committed Aug 7, 2024
1 parent ccfd7e8 commit fdfd924
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions eng/tools/generator/cmd/v2/common/cmdProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,18 +316,14 @@ func diagnostics(lines []string) []diagnostic {
if strings.Contains(line, "warning ") {
if start != -1 {
diagnostics = append(diagnostics, diagnostic{kind: kind, start: start, end: i - 1})
start = i
} else {
start = i
}
start = i
kind = "warning"
} else if strings.Contains(line, "error ") {
if start != -1 {
diagnostics = append(diagnostics, diagnostic{kind: kind, start: start, end: i - 1})
start = i
} else {
start = i
}
start = i
kind = "error"
}

Expand Down

0 comments on commit fdfd924

Please sign in to comment.