pkg/authorization: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-01-20 13:45:11 +01:00
parent f7552f1de4
commit 2aac054f52
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -37,14 +37,14 @@ func TestPeerCertificateMarshalJSON(t *testing.T) {
publickey := &privatekey.PublicKey
// create a self-signed certificate. template = parent
var parent = template
parent := template
raw, err := x509.CreateCertificate(rand.Reader, template, parent, publickey, privatekey)
assert.NilError(t, err)
cert, err := x509.ParseCertificate(raw)
assert.NilError(t, err)
var certs = []*x509.Certificate{cert}
certs := []*x509.Certificate{cert}
addr := "www.authz.com/auth"
req, err := http.NewRequest(http.MethodGet, addr, nil)
assert.NilError(t, err)