]> Cypherpunks repositories - gostls13.git/commit
encoding/json: simplify encodeState.{string, stringBytes}
authorNodir Turakulov <nodir@google.com>
Wed, 14 Oct 2015 22:18:10 +0000 (15:18 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Oct 2015 23:29:14 +0000 (23:29 +0000)
commit07314714c0dc11b690772d3f4c3a582686340961
treef93141373b92c7133d464391ec257b7d51a79c21
parent20736fcab966412cb41b8a3c9a051469a5c8f00c
encoding/json: simplify encodeState.{string, stringBytes}

As correctly mentioned in #11883, encodeState.string and
encodeState.stringBytes never return an error.
This CL removes the error from the function signatures and somewhat
simplifies call sites.

Fixes #11883

Change-Id: I1d1853d09631c545b68b5eea86ff7daa2e0ca10b
Reviewed-on: https://go-review.googlesource.com/15836
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/json/encode.go
src/encoding/json/encode_test.go