mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
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:
parent
2352690bde
commit
99d223130c
@ -86,10 +86,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
pkg := typeNameObj.Pkg()
|
pkg := typeNameObj.Pkg()
|
||||||
gen(buf, imports, typeName, typ, pkg)
|
gen(buf, imports, typeName, typ, pkg)
|
||||||
}
|
|
||||||
found = true
|
found = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if !found {
|
if !found {
|
||||||
log.Fatalf("could not find type %s", typeName)
|
log.Fatalf("could not find type %s", typeName)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user