From 4444f850b73324bc830d14d199371cc60d5608c7 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 30 Sep 2022 03:22:55 +0000 Subject: 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 Reviewed-by: Keith Randall Run-TryBot: Keith Randall Reviewed-by: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov --- src/runtime/testdata/testprog/numcpu_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/testdata') 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 -- cgit v1.3-5-g9baa