summaryrefslogtreecommitdiff
path: root/src/pkg/reflect/value.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/reflect/value.go')
-rw-r--r--src/pkg/reflect/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go
index 727a9c1b8..33113d003 100644
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -1195,7 +1195,7 @@ func newFuncValue(typ Type, addr addr, canSet bool) *FuncValue {
func newValue(typ Type, addr addr, canSet bool) Value {
// FuncValue has a different layout;
// it needs a extra space for the fixed receivers.
- if t, ok := typ.(*FuncType); ok {
+ if _, ok := typ.(*FuncType); ok {
return newFuncValue(typ, addr, canSet);
}