diff options
| author | Martin Möhrmann <martisch@uos.de> | 2016-02-27 20:55:50 +0100 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2016-03-01 07:36:06 +0000 |
| commit | 33c0ef2de3ba30a70b20433b14c45ccb06d02222 (patch) | |
| tree | fdbaa915ea8ce2f5b4b4a3d4d0aeb8cd1e7ffe01 /src/encoding/json/encode.go | |
| parent | 8ad027c0c401a5b2d58679f8dac2b4c4f68c8ba0 (diff) | |
| download | go-33c0ef2de3ba30a70b20433b14c45ccb06d02222.tar.xz | |
fmt: make identification of string arguments consistent
Use only reflect.TypeOf to detect if argument is a string.
The wasString return is only needed in doPrint with the 'v' verb.
This type of string detection is handled correctly by reflect.TypeOf
which is used already in doPrint for identifying a string argument.
Remove now obsolete wasString computations and return values.
Change-Id: Iea2de7ac0f5c536a53eec63f7e679d628f5af8dc
Reviewed-on: https://go-review.googlesource.com/19976
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
