This one slipped through a previous cleanup
and showed up in an allocation profile.
Change-Id: Ife447fe32797f1685c20806718193b0985b4a412
Reviewed-on: https://go-review.googlesource.com/c/go/+/446295
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Ti, _ := Tu.(*Interface)
if Ti == nil {
- var detail string
- if isInterfacePtr(Tu) {
- detail = check.sprintf("type %s is pointer to interface, not interface", T)
- } else {
- detail = check.sprintf("%s is not an interface", T)
- }
if cause != nil {
+ var detail string
+ if isInterfacePtr(Tu) {
+ detail = check.sprintf("type %s is pointer to interface, not interface", T)
+ } else {
+ detail = check.sprintf("%s is not an interface", T)
+ }
*cause = check.sprintf("%s does not implement %s (%s)", V, T, detail)
}
return false
Ti, _ := Tu.(*Interface)
if Ti == nil {
- var detail string
- if isInterfacePtr(Tu) {
- detail = check.sprintf("type %s is pointer to interface, not interface", T)
- } else {
- detail = check.sprintf("%s is not an interface", T)
- }
if cause != nil {
+ var detail string
+ if isInterfacePtr(Tu) {
+ detail = check.sprintf("type %s is pointer to interface, not interface", T)
+ } else {
+ detail = check.sprintf("%s is not an interface", T)
+ }
*cause = check.sprintf("%s does not implement %s (%s)", V, T, detail)
}
return false