From 400bb82678c34988e02d8bd0a6449b00c1965d50 Mon Sep 17 00:00:00 2001 From: Didier Spezia Date: Sun, 23 Aug 2015 12:49:16 +0000 Subject: [PATCH] crypto/x509: map/slice literals janitoring Simplify slice/map literal expression. Caught with gofmt -d -s, fixed with gofmt -w -s Change-Id: I4472c6003cf66e65f6e69050872ff95c96f01253 Reviewed-on: https://go-review.googlesource.com/13836 Reviewed-by: Andrew Gerrand --- src/crypto/x509/x509_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/x509/x509_test.go b/src/crypto/x509/x509_test.go index f4f9fa2f7f..fbd77dde8a 100644 --- a/src/crypto/x509/x509_test.go +++ b/src/crypto/x509/x509_test.go @@ -504,9 +504,9 @@ func TestUnknownCriticalExtension(t *testing.T) { oids := []asn1.ObjectIdentifier{ // This OID is in the PKIX arc, but unknown. - asn1.ObjectIdentifier{2, 5, 29, 999999}, + {2, 5, 29, 999999}, // This is a nonsense, unassigned OID. - asn1.ObjectIdentifier{1, 2, 3, 4}, + {1, 2, 3, 4}, } for _, oid := range oids { -- 2.48.1