aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/kr/pretty/formatter.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/kr/pretty/formatter.go')
-rw-r--r--vendor/github.com/kr/pretty/formatter.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/github.com/kr/pretty/formatter.go b/vendor/github.com/kr/pretty/formatter.go
index a317d7b8ee..df61d8d19e 100644
--- a/vendor/github.com/kr/pretty/formatter.go
+++ b/vendor/github.com/kr/pretty/formatter.go
@@ -125,7 +125,6 @@ func (p *printer) printValue(v reflect.Value, showType, quote bool) {
}
keys := v.MapKeys()
for i := 0; i < v.Len(); i++ {
- showTypeInStruct := true
k := keys[i]
mv := v.MapIndex(k)
pp.printValue(k, false, true)
@@ -133,7 +132,7 @@ func (p *printer) printValue(v reflect.Value, showType, quote bool) {
if expand {
writeByte(pp, '\t')
}
- showTypeInStruct = t.Elem().Kind() == reflect.Interface
+ showTypeInStruct := t.Elem().Kind() == reflect.Interface
pp.printValue(mv, showTypeInStruct, true)
if expand {
io.WriteString(pp, ",\n")