style police: parens in if, for, switch, range

R=r
DELTA=32  (0 added, 3 deleted, 29 changed)
OCL=30718
CL=30725
This commit is contained in:
Russ Cox 2009-06-24 20:12:50 -07:00
parent 30533d607a
commit a50cbf6c73
14 changed files with 29 additions and 32 deletions

View file

@ -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);
}
}