mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: print diff with gofmt
Current test doesn't pass -d option to gofmt. Let's pass the option for easy fix. Example output: Checking gofmt... gofmt checking failed: client/client.go diff client/client.go gofmt/client/client.go --- /tmp/gofmt741496847 2015-12-04 10:11:11.340651702 +0900 +++ /tmp/gofmt265273890 2015-12-04 10:11:11.340651702 +0900 @@ -41,7 +41,7 @@ var DefaultTransport CancelableTransport = &http.Transport{ Proxy: http.ProxyFromEnvironment, - Dial:(&net.Dialer{ + Dial: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).Dial, @@ -265,7 +265,7 @@ return ErrNoEndpoints } - for i, _ := range c.endpoints { + for i := range c.endpoints { if c.endpoints[i].String() == lu.String() { c.pinned = i break
This commit is contained in:
parent
8d4073d078
commit
7094c78dcd
Loading…
x
Reference in New Issue
Block a user