]> Cypherpunks repositories - gostls13.git/commit
encoding/json: use reflect.Value.IsZero
authorandig <cpuidle@gmx.de>
Sat, 14 Oct 2023 09:32:20 +0000 (09:32 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 18 Oct 2023 20:00:40 +0000 (20:00 +0000)
commit1d400cdfc995b1467d6901e0042bca0f37ffdec2
tree2ecf9db91fe83cb6391b18cf01d95707b2d8d08d
parentd1cb2483b70827f8f2f839fe7b0f140c910fc5b7
encoding/json: use reflect.Value.IsZero

IsZero does the same thing, using this rather than writing it again.

Follow-up to https://github.com/golang/go/pull/63519

Change-Id: I93768874052935dd7cb58804f22748091bcc3ef7
GitHub-Last-Rev: dfbc6ed635125535a73fe509716e0df31cc8f7b0
GitHub-Pull-Request: golang/go#63540
Reviewed-on: https://go-review.googlesource.com/c/go/+/535415
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/encoding/json/encode.go