Skip to content

Commit

Permalink
codegen: Revert Unalias before lookup type (99designs#3247)
Browse files Browse the repository at this point in the history
This reverts commit 4c4be0a.
  • Loading branch information
giautm committed Sep 5, 2024
1 parent 4c4be0a commit 0d5816f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/templates/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (s *Imports) Lookup(path string) string {
}

func (s *Imports) LookupType(t types.Type) string {
return types.TypeString(code.Unalias(t), func(i *types.Package) string {
return types.TypeString(t, func(i *types.Package) string {
return s.Lookup(i.Path())
})
}
Expand Down

0 comments on commit 0d5816f

Please sign in to comment.