From 8cf428d7101c294e4476f95ca530e4e35075a98c Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 13 Apr 2011 15:13:59 -0700 Subject: [PATCH] gofmt: gofmt -s -w src misc R=r, bradfitzwork CC=golang-dev https://golang.org/cl/4406044 --- common.go | 2 +- handshake_messages_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.go b/common.go index c779234..fb2916a 100644 --- a/common.go +++ b/common.go @@ -255,7 +255,7 @@ var varDefaultCipherSuites []uint16 func initDefaultCipherSuites() { varDefaultCipherSuites = make([]uint16, len(cipherSuites)) i := 0 - for id, _ := range cipherSuites { + for id := range cipherSuites { varDefaultCipherSuites[i] = id i++ } diff --git a/handshake_messages_test.go b/handshake_messages_test.go index 0b93b89..f5e94e2 100644 --- a/handshake_messages_test.go +++ b/handshake_messages_test.go @@ -121,7 +121,7 @@ func (*clientHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value { m.ocspStapling = rand.Intn(10) > 5 m.supportedPoints = randomBytes(rand.Intn(5)+1, rand) m.supportedCurves = make([]uint16, rand.Intn(5)+1) - for i, _ := range m.supportedCurves { + for i := range m.supportedCurves { m.supportedCurves[i] = uint16(rand.Intn(30000)) }