goprotobuf: Further changes after the reflect API changes.
R=r, r2
CC=golang-dev
http://codereview.appspot.com/4434041
diff --git a/proto/text.go b/proto/text.go
index e26bbc2..3f2eac4 100644
--- a/proto/text.go
+++ b/proto/text.go
@@ -202,8 +202,8 @@
// We should normally be passed a struct, or a pointer to a struct,
// and we don't want the outer < and > in that case.
v = reflect.Indirect(v)
- if sv := v; sv.Kind() == reflect.Struct {
- writeStruct(aw, sv)
+ if v.Kind() == reflect.Struct {
+ writeStruct(aw, v)
} else {
writeAny(aw, v)
}