cmd/cloner: fix found type detection
This was causing any type to be reported as found,
as long as there were any type decls at all. Oops.
@@ -86,10 +86,10 @@ func main() {
}
pkg := typeNameObj.Pkg()
gen(buf, imports, typeName, typ, pkg)
- }
found = true
}
}
+ }
if !found {
log.Fatalf("could not find type %s", typeName)
}
