From 6091662fa95050c65f573c5a1de9625804b44654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 6 Feb 2017 11:03:58 +0000 Subject: [PATCH] cmd/link, crypto/tls: don't use append loops Change-Id: Ib47e295e8646b769c30fd81e5c7f20f964df163e Reviewed-on: https://go-review.googlesource.com/36335 Reviewed-by: Filippo Valsorda Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- common.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common.go b/common.go index 2ebb37b..7e061f4 100644 --- a/common.go +++ b/common.go @@ -946,9 +946,7 @@ func initDefaultCipherSuites() { } varDefaultCipherSuites = make([]uint16, 0, len(cipherSuites)) - for _, topCipher := range topCipherSuites { - varDefaultCipherSuites = append(varDefaultCipherSuites, topCipher) - } + varDefaultCipherSuites = append(varDefaultCipherSuites, topCipherSuites...) NextCipherSuite: for _, suite := range cipherSuites {