passes: small code cleanup

This commit is contained in:
Ayke van Laethem
2018-08-30 22:54:44 +02:00
parent 734b0cb6bc
commit a1359d7f64
+1 -1
View File
@@ -114,7 +114,7 @@ func (p *Program) AnalyseInterfaceConversions() {
name := MethodName(sel.Obj().(*types.Func))
t.Methods[name] = sel
}
p.typesWithMethods[instr.X.Type().String()] = t
p.typesWithMethods[name] = t
} else if _, ok := p.typesWithoutMethods[name]; !ok && len(methods) == 0 {
p.typesWithoutMethods[name] = len(p.typesWithoutMethods)
}