cmd/link, crypto/tls: don't use append loops

Change-Id: Ib47e295e8646b769c30fd81e5c7f20f964df163e
Reviewed-on: https://go-review.googlesource.com/36335
Reviewed-by: Filippo Valsorda <hi@filippo.io>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Daniel Martí 2017-02-06 11:03:58 +00:00 committed by Brad Fitzpatrick
parent 59e91483bd
commit 6091662fa9

View File

@ -946,9 +946,7 @@ func initDefaultCipherSuites() {
} }
varDefaultCipherSuites = make([]uint16, 0, len(cipherSuites)) varDefaultCipherSuites = make([]uint16, 0, len(cipherSuites))
for _, topCipher := range topCipherSuites { varDefaultCipherSuites = append(varDefaultCipherSuites, topCipherSuites...)
varDefaultCipherSuites = append(varDefaultCipherSuites, topCipher)
}
NextCipherSuite: NextCipherSuite:
for _, suite := range cipherSuites { for _, suite := range cipherSuites {