mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
internal/profile: omit comparison tool bool constant
Change-Id: I59b3e72382433a6dd82306f026171f3af4a6cba7 Reviewed-on: https://go-review.googlesource.com/c/go/+/436717 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
574b5decf2
commit
dc53738f58
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ func encodeBool(b *buffer, tag int, x bool) {
|
|||
}
|
||||
|
||||
func encodeBoolOpt(b *buffer, tag int, x bool) {
|
||||
if x == false {
|
||||
if !x {
|
||||
return
|
||||
}
|
||||
encodeBool(b, tag, x)
|
||||
|
|
Loading…
Reference in a new issue