diff options
| author | cui fliter <imcusg@gmail.com> | 2022-09-30 03:22:55 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-30 20:09:46 +0000 |
| commit | 4444f850b73324bc830d14d199371cc60d5608c7 (patch) | |
| tree | 8201c4a18ace0adf01e41e4f5281bca6615e5b80 /src/runtime/testdata | |
| parent | 826efd7f25f789ab06f257eee19f02b1dc6c8a09 (diff) | |
| download | go-4444f850b73324bc830d14d199371cc60d5608c7.tar.xz | |
all: omit comparison bool constant to simplify code
Change-Id: Icd4062e570559f1d0c69d4bdb9e23412054cf2a6
GitHub-Last-Rev: fbbfbcb54dac88c9a8f5c5c6d210be46f87e27dd
GitHub-Pull-Request: golang/go#55958
Reviewed-on: https://go-review.googlesource.com/c/go/+/436880
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testprog/numcpu_freebsd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/testdata/testprog/numcpu_freebsd.go b/src/runtime/testdata/testprog/numcpu_freebsd.go index 7209f67959..310c21244c 100644 --- a/src/runtime/testdata/testprog/numcpu_freebsd.go +++ b/src/runtime/testdata/testprog/numcpu_freebsd.go @@ -48,7 +48,7 @@ func FreeBSDNumCPU() { fmt.Printf("fail to launch '%s', error: %s, output: %s\n", strings.Join(cmd.Args, " "), err, output) return } - if bytes.Equal(output, []byte("1\n")) == false { + if !bytes.Equal(output, []byte("1\n")) { // SMP mode deactivated in kernel. fmt.Println("OK") return |
