diff options
| author | cuiweixie <cuiweixie@gmail.com> | 2022-09-29 21:44:34 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-30 01:34:14 +0000 |
| commit | dc53738f58a5db038c052256a7da2b0c07ec9fcb (patch) | |
| tree | e0f2f26f5ad2faf8d127bbc4b013db2469f5df55 /src/internal/profile | |
| parent | 574b5decf239f5dad1f25a71d2853a08e237821d (diff) | |
| download | go-dc53738f58a5db038c052256a7da2b0c07ec9fcb.tar.xz | |
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>
Diffstat (limited to 'src/internal/profile')
| -rw-r--r-- | src/internal/profile/proto.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/profile/proto.go b/src/internal/profile/proto.go index 52cf1ef2b3..3e9ec37253 100644 --- a/src/internal/profile/proto.go +++ b/src/internal/profile/proto.go @@ -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) |
