net/http: gofmt -w -s

Change-Id: I7e07888e90c7449f119e74b97995efcd7feef76e
Reviewed-on: https://go-review.googlesource.com/22682
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Mikio Hara 2016-05-02 04:44:46 +09:00
parent ade0eb2f06
commit 5776c20164
1 changed files with 2 additions and 2 deletions

View File

@ -3234,7 +3234,7 @@ func testTransportEventTrace(t *testing.T, noHooks bool) {
t.Errorf("unexpected DNS host lookup for %q", host)
return nil, nil
}
return []net.IPAddr{net.IPAddr{IP: net.ParseIP(ip)}}, nil
return []net.IPAddr{{IP: net.ParseIP(ip)}}, nil
})
req, _ := NewRequest("POST", "http://dns-is-faked.golang:"+port, strings.NewReader("some body"))
@ -3321,7 +3321,7 @@ func TestTransportMaxIdleConns(t *testing.T) {
}
c := &Client{Transport: tr}
ctx := context.WithValue(context.Background(), nettrace.LookupIPAltResolverKey{}, func(ctx context.Context, host string) ([]net.IPAddr, error) {
return []net.IPAddr{net.IPAddr{IP: net.ParseIP(ip)}}, nil
return []net.IPAddr{{IP: net.ParseIP(ip)}}, nil
})
hitHost := func(n int) {