Skip to content

Commit

Permalink
Remove some debugging changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
paddycarver committed Jan 2, 2023
1 parent 1e8f0b6 commit 7aa3e96
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,8 @@ func typeSpec(path, id string, typeParams []string, srcDir string) (Pkg, Spec, e
cmap := ast.NewCommentMap(fset, f, f.Comments)

for _, decl := range f.Decls {
genDecl, ok := decl.(*ast.GenDecl)
if !ok {
continue
}
decl := genDecl
if decl.Tok != token.TYPE {
decl, ok := decl.(*ast.GenDecl)
if !ok || decl.Tok != token.TYPE {
continue
}
for _, spec := range decl.Specs {
Expand Down

0 comments on commit 7aa3e96

Please sign in to comment.