From 0100d87484989a2302b50c048ed4141ee572946a Mon Sep 17 00:00:00 2001 From: Michael Morello Date: Mon, 18 Mar 2024 15:33:43 +0100 Subject: [PATCH] Suggestion from code review --- processor/processor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/processor.go b/processor/processor.go index 7212dce..a019354 100644 --- a/processor/processor.go +++ b/processor/processor.go @@ -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 }