From: ZZMarquis Date: Wed, 27 Feb 2019 19:26:13 +0000 (+0000) Subject: crypto/x509: remove the redundant type declaration X-Git-Tag: go1.13beta1~1315 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b00ef3b8654ea64651805460fe23c67716cdd827;p=gostls13.git crypto/x509: remove the redundant type declaration 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 TryBot-Result: Gobot Gobot Reviewed-by: Filippo Valsorda --- diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 4f9b305e7c..80e4dec0f3 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -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)}, }, }, }