Skip to content

Commit

Permalink
Suggestion from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
barkbay committed Mar 18, 2024
1 parent fef8ca5 commit 0100d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ func (p *processor) extractPkgDocumentation(pkg *loader.Package) string {

func (p *processor) processType(pkg *loader.Package, parentType *types.Type, t gotypes.Type, depth int) *types.Type {
typeDef, rawType := mkType(pkg, t)

if !rawType && p.shouldIgnoreType(typeDef.Name) {
zap.S().Debugw("Skipping excluded type", "type", t.String())
typeID := types.Identifier(typeDef)
if !rawType && p.shouldIgnoreType(typeID) {
zap.S().Debugw("Skipping excluded type", "type", typeID)
return nil
}

Expand Down

0 comments on commit 0100d87

Please sign in to comment.