mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
@@ -15,22 +15,22 @@ import (
|
||||
// it is used to test the invalidate func.
|
||||
func errorPaths(b *backend) []*framework.Path {
|
||||
return []*framework.Path{
|
||||
&framework.Path{
|
||||
{
|
||||
Pattern: "errors/rpc",
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.ReadOperation: b.pathErrorRPCRead,
|
||||
},
|
||||
},
|
||||
&framework.Path{
|
||||
{
|
||||
Pattern: "errors/kill",
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.ReadOperation: b.pathErrorRPCRead,
|
||||
},
|
||||
},
|
||||
&framework.Path{
|
||||
{
|
||||
Pattern: "errors/type",
|
||||
Fields: map[string]*framework.FieldSchema{
|
||||
"err_type": &framework.FieldSchema{Type: framework.TypeInt},
|
||||
"err_type": {Type: framework.TypeInt},
|
||||
},
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.CreateOperation: b.pathErrorRPCRead,
|
||||
@@ -71,5 +71,4 @@ func (b *backend) pathErrorRPCRead(ctx context.Context, req *logical.Request, da
|
||||
}
|
||||
|
||||
return nil, err
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user