diff options
author | Russ Cox <rsc@golang.org> | 2009-06-24 20:12:50 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-24 20:12:50 -0700 |
commit | dfafe9a353bd1d4dcbbde691b9c8cda2533f47a3 (patch) | |
tree | edbec55b247a7a6543d84b4574fb88326833b3e1 /src/pkg/http/client_test.go | |
parent | e3fe6186634f9b74b9f39924516e24b068b9e141 (diff) | |
download | golang-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.go | 7 |
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); } } |