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.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2020-09-04 13:26:21 -07:00 committed by Josh Bleecher Snyder
parent 2352690bde
commit 99d223130c
1 changed files with 1 additions and 1 deletions

View File

@ -86,8 +86,8 @@ func main() {
}
pkg := typeNameObj.Pkg()
gen(buf, imports, typeName, typ, pkg)
found = true
}
found = true
}
}
if !found {