Browse code

pkg/authorization: format code with gofumpt

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2022/01/20 21:45:11
Showing 1 changed files
... ...
@@ -37,14 +37,14 @@ func TestPeerCertificateMarshalJSON(t *testing.T) {
37 37
 	publickey := &privatekey.PublicKey
38 38
 
39 39
 	// create a self-signed certificate. template = parent
40
-	var parent = template
40
+	parent := template
41 41
 	raw, err := x509.CreateCertificate(rand.Reader, template, parent, publickey, privatekey)
42 42
 	assert.NilError(t, err)
43 43
 
44 44
 	cert, err := x509.ParseCertificate(raw)
45 45
 	assert.NilError(t, err)
46 46
 
47
-	var certs = []*x509.Certificate{cert}
47
+	certs := []*x509.Certificate{cert}
48 48
 	addr := "www.authz.com/auth"
49 49
 	req, err := http.NewRequest(http.MethodGet, addr, nil)
50 50
 	assert.NilError(t, err)