unused: remove superfluous nil check
@@ -1105,13 +1105,11 @@ func (g *graph) entry(pkg *pkg) {
}
g.function(m)
case *ir.Type:
- if m.Object() != nil {
g.see(m.Object())
if m.Object().Exported() {
// (1.1) packages use exported named types
g.use(m.Object(), nil, edgeExportedType)
}
- }
g.typ(m.Type(), nil)
default:
panic(fmt.Sprintf("unreachable: %T", m))
