From 04b5c1e99691fd66775540ade977142716be9617 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 15 Dec 2024 07:09:24 +0100 Subject: [PATCH] fix: type aliases --- pkg/analyzer/analyzer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/analyzer.go b/pkg/analyzer/analyzer.go index 5507d95..703cc1c 100644 --- a/pkg/analyzer/analyzer.go +++ b/pkg/analyzer/analyzer.go @@ -125,7 +125,7 @@ const ( ) func (n *nilNil) isDangerNilType(t types.Type) (bool, zeroValue) { - switch v := t.(type) { + switch v := types.Unalias(t).(type) { case *types.Pointer: return n.checkedTypes.Contains(ptrType), zeroValueNil