]> Cypherpunks repositories - gostls13.git/commit
text/template: check final value for short-circuit and/or
authorIan Lance Taylor <iant@golang.org>
Wed, 29 Sep 2021 17:50:18 +0000 (10:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 29 Sep 2021 18:38:00 +0000 (18:38 +0000)
commit82ac9ab83a47468046bda9bf6c4676a9695fae24
tree079eb045ea5cf64a1acfd23c571faf46109afac2
parente48cf0db4edb139901946fcee1497bd539229d71
text/template: check final value for short-circuit and/or

There was a bug in the short-circuit code for and/or added in CL 321490:
it ignored the value passed in by an earlier pipeline.

For #31103

Change-Id: Ic31f4d7cedfe563ef968cbb712ecfb2413c42eb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/353130
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/text/template/exec.go
src/text/template/exec_test.go