diff options
| author | Alberto Donizetti <alb.donizetti@gmail.com> | 2020-10-12 14:35:24 +0200 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2020-10-12 16:12:25 +0000 |
| commit | 349a2876467cdae58a772424f044f882fd4e2f6b (patch) | |
| tree | b5cd183d4c26324a8691a0551444f07f38eeb70b /src/text/template/parse | |
| parent | 2e7706d1fa50edd1bc9fa6a4d1eeb58d10fa2536 (diff) | |
| download | go-349a2876467cdae58a772424f044f882fd4e2f6b.tar.xz | |
cmd/compile: use Bool accessor in place of Val.U.(bool)
We have a Bool() accessor for the value in boolean nodes, that we use
elsewhere for n.Val().U.(bool), use it here too. Noticed while reading
the code.
Change-Id: Ie42e014970099a05fe9f02f378af77b63e7e6b13
Reviewed-on: https://go-review.googlesource.com/c/go/+/261360
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/text/template/parse')
0 files changed, 0 insertions, 0 deletions
