summaryrefslogtreecommitdiff
path: root/src/pkg/http/client_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-06-24 20:12:50 -0700
committerRuss Cox <rsc@golang.org>2009-06-24 20:12:50 -0700
commitdfafe9a353bd1d4dcbbde691b9c8cda2533f47a3 (patch)
treeedbec55b247a7a6543d84b4574fb88326833b3e1 /src/pkg/http/client_test.go
parente3fe6186634f9b74b9f39924516e24b068b9e141 (diff)
downloadgolang-dfafe9a353bd1d4dcbbde691b9c8cda2533f47a3.tar.gz
style police: parens in if, for, switch, range
R=r DELTA=32 (0 added, 3 deleted, 29 changed) OCL=30718 CL=30725
Diffstat (limited to 'src/pkg/http/client_test.go')
-rw-r--r--src/pkg/http/client_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go
index ca4235879..919e556e4 100644
--- a/src/pkg/http/client_test.go
+++ b/src/pkg/http/client_test.go
@@ -27,10 +27,7 @@ func TestClient(t *testing.T) {
if err != nil {
t.Errorf("Error fetching URL: %v", err);
- } else {
- s := string(b);
- if (!strings.HasPrefix(s, "User-agent:")) {
- t.Errorf("Incorrect page body (did not begin with User-agent): %q", s);
- }
+ } else if s := string(b); !strings.HasPrefix(s, "User-agent:") {
+ t.Errorf("Incorrect page body (did not begin with User-agent): %q", s);
}
}