aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2023-09-06 15:14:28 +0300
committerGopher Robot <gobot@golang.org>2023-09-20 18:06:13 +0000
commitda8f406f069490a14aef878559a6db08f4d53344 (patch)
tree14bb00141d7a1f5d6d0d19729bbfb5062443231d /src/net
parentbebf82cbf696002acfde605735e0f454b730df9d (diff)
downloadgo-da8f406f069490a14aef878559a6db08f4d53344.tar.xz
all: simplify bool conditions
Change-Id: Id2079f7012392dea8dfe2386bb9fb1ea3f487a4a Reviewed-on: https://go-review.googlesource.com/c/go/+/526015 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/http/response_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/response_test.go b/src/net/http/response_test.go
index ddd318084d..f3425c3c20 100644
--- a/src/net/http/response_test.go
+++ b/src/net/http/response_test.go
@@ -849,7 +849,7 @@ func TestReadResponseErrors(t *testing.T) {
type testCase struct {
name string // optional, defaults to in
in string
- wantErr any // nil, err value, or string substring
+ wantErr any // nil, err value, bool value, or string substring
}
status := func(s string, wantErr any) testCase {