goprotobuf: Style updates for text.go and text_test.go.
R=r
CC=golang-dev
http://codereview.appspot.com/4774041
diff --git a/proto/text.go b/proto/text.go
index f7f8f5f..54a89f7 100644
--- a/proto/text.go
+++ b/proto/text.go
@@ -127,19 +127,17 @@
continue
}
- if props.Repeated {
- if fv.Kind() == reflect.Slice {
- // Repeated field.
- for j := 0; j < fv.Len(); j++ {
- writeName(w, props)
- if !w.compact {
- w.WriteByte(' ')
- }
- writeAny(w, fv.Index(j), props)
- w.WriteByte('\n')
+ if props.Repeated && fv.Kind() == reflect.Slice {
+ // Repeated field.
+ for j := 0; j < fv.Len(); j++ {
+ writeName(w, props)
+ if !w.compact {
+ w.WriteByte(' ')
}
- continue
+ writeAny(w, fv.Index(j), props)
+ w.WriteByte('\n')
}
+ continue
}
writeName(w, props)