]> Cypherpunks repositories - gostls13.git/commit
html/template: use named consts instead of their values
authorIskander Sharipov <iskander.sharipov@intel.com>
Wed, 11 Jul 2018 20:36:55 +0000 (23:36 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2018 22:48:10 +0000 (22:48 +0000)
commit48462bb3c04f34c93689c047d4bc5319bc79b31b
tree8453b5c4c419a0c4d0da1344d76e8dd0d1f64d56
parentca8ba0675a5a73b4e0ad8ba1c50e244b793934ee
html/template: use named consts instead of their values

Use defined named constants instead of 0 literal in comparisons.

Found using https://go-critic.github.io/overview.html#namedConst-ref

Change-Id: Ic075cece248f6e51db0b3d9d9eaba7d6409c9eef
Reviewed-on: https://go-review.googlesource.com/123376
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/html/template/context.go