diff --git a/runtime/internal/runtime/z_face.go b/runtime/internal/runtime/z_face.go index 7312f544..364853de 100644 --- a/runtime/internal/runtime/z_face.go +++ b/runtime/internal/runtime/z_face.go @@ -396,10 +396,7 @@ func findMethod(mthds []abi.Method, im abi.Imethod) abi.Text { } func methods(u *abi.UncommonType, from string) []abi.Method { - if from == "" { - return u.Methods() - } - if u.PkgPath_ == from { + if from == "" || u.PkgPath_ == from { return u.Methods() } return u.ExportedMethods()