Skip to content

Commit

Permalink
fix: type aliases (#47)
Browse files Browse the repository at this point in the history
* chore: break the CI

* fix: type aliases
  • Loading branch information
ldez authored Dec 16, 2024
1 parent 1d33958 commit 5816603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions pkg/analyzer/analyzer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:debug gotypesalias=1

Check failure on line 1 in pkg/analyzer/analyzer_test.go

View workflow job for this annotation

GitHub Actions / lint

compiler directive unrecognized: //go:debug (gocheckcompilerdirectives)

package analyzer_test

import (
Expand Down

0 comments on commit 5816603

Please sign in to comment.