Skip to content

Commit eb89789

Browse files
committed
rename
1 parent 022adfc commit eb89789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func ExecuteTspClient(path string, args ...string) error {
244244
// filter diagnostic errors
245245
if len(newErrMsgs) == 1 &&
246246
newErrMsgs[0] == "Diagnostics were reported during compilation. Use the `--debug` flag to see the diagnostic output." {
247-
newErrMsgs = FilterErrorDiagnostics(strings.Split(stdoutBuffer.String(), "\n"))
247+
newErrMsgs = getErrorDiagnostics(strings.Split(stdoutBuffer.String(), "\n"))
248248

249249
temp := make([]string, 0)
250250
for _, line := range newErrMsgs {
@@ -337,7 +337,7 @@ func diagnostics(lines []string) []diagnostic {
337337
return diagnostics
338338
}
339339

340-
func FilterErrorDiagnostics(lines []string) []string {
340+
func getErrorDiagnostics(lines []string) []string {
341341
diags := diagnostics(lines)
342342
if len(diags) == 0 {
343343
return nil

0 commit comments

Comments
 (0)