]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: remove the redundant type declaration
authorZZMarquis <zhonglingjian3821@163.com>
Wed, 27 Feb 2019 19:26:13 +0000 (19:26 +0000)
committerFilippo Valsorda <filippo@golang.org>
Wed, 27 Feb 2019 20:52:17 +0000 (20:52 +0000)
Change-Id: I50668a4c943ecab91b2b33370f6cfb3784afafd1
GitHub-Last-Rev: c8223adfc8b7d3fc712089bb9cb03d6832ab558b
GitHub-Pull-Request: golang/go#29654
Reviewed-on: https://go-review.googlesource.com/c/157338
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/x509.go

index 4f9b305e7c3357329d38fb1db7eba14d3ea7da03..80e4dec0f36ca4be451718256cf9ab3f3535becc 100644 (file)
@@ -1930,7 +1930,7 @@ func buildExtensions(template *Certificate, subjectIsEmpty bool, authorityKeyId
                        dp := distributionPoint{
                                DistributionPoint: distributionPointName{
                                        FullName: []asn1.RawValue{
-                                               asn1.RawValue{Tag: 6, Class: 2, Bytes: []byte(name)},
+                                               {Tag: 6, Class: 2, Bytes: []byte(name)},
                                        },
                                },
                        }