Skip to content

Commit

Permalink
Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
psha- committed Oct 26, 2023
1 parent 3bc817d commit 113c72f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bind/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ func (p *Package) getDoc(parent string, o types.Object) string {
}
// Check for typed consts
scopeName := p.pkg.Scope().Lookup(n)
if scopeName == nil {
return ""
}
constType := scopeName.Type()
if constType == nil {
return ""
Expand Down

0 comments on commit 113c72f

Please sign in to comment.