mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
30533d607a
commit
a50cbf6c73
14 changed files with 29 additions and 32 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue