Skip to content

Commit

Permalink
typesutil: check for need goinfo (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc authored Feb 27, 2024
1 parent 161cd84 commit d66dbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/typesutil/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (p *Checker) Files(goFiles []*goast.File, gopFiles []*ast.File) (err error)
}
// don't return even if err != nil
}
if len(files) > 0 {
if len(files) > 0 && p.goInfo != nil {
scope := pkgTypes.Scope()
objMap := DeleteObjects(scope, files)
checker := types.NewChecker(conf, fset, pkgTypes, p.goInfo)
Expand Down

0 comments on commit d66dbca

Please sign in to comment.