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:
parent
f7552f1de4
commit
2aac054f52
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue