]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: map/slice literals janitoring
authorDidier Spezia <didier.06@gmail.com>
Sun, 23 Aug 2015 12:49:16 +0000 (12:49 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 11 Sep 2015 14:04:11 +0000 (14:04 +0000)
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 <adg@golang.org>
src/crypto/x509/x509_test.go

index f4f9fa2f7f9e39e322281679a2687181d7459927..fbd77dde8a9998f3a6e56b8ee1936b1319750ce1 100644 (file)
@@ -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 {