Skip to content

Commit

Permalink
revert getdiagnostics change
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Mar 28, 2024
1 parent 22655e2 commit 59e881b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cadence/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (l *linter) lintFile(
return nil, fmt.Errorf("could not process parsing error: %s", parseProgramErr)
}

checkerDiagnostics, err := GetDiagnosticsFromParentError(parserErr, location, codeStr)
checkerDiagnostics, err := getDiagnosticsFromParentError(parserErr, location, codeStr)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -130,7 +130,7 @@ func (l *linter) lintFile(
return nil, fmt.Errorf("could not process checking error: %s", checkProgramErr)
}

checkerDiagnostics, err := GetDiagnosticsFromParentError(checkerErr, location, codeStr)
checkerDiagnostics, err := getDiagnosticsFromParentError(checkerErr, location, codeStr)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -278,7 +278,7 @@ func (l *linter) resolveImportFilepath(

// helpers

func GetDiagnosticsFromParentError(err cdcerrors.ParentError, location common.Location, code string) ([]analysis.Diagnostic, error) {
func getDiagnosticsFromParentError(err cdcerrors.ParentError, location common.Location, code string) ([]analysis.Diagnostic, error) {
diagnostics := make([]analysis.Diagnostic, 0)

for _, childErr := range err.ChildErrors() {
Expand Down

0 comments on commit 59e881b

Please sign in to comment.