mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
gofmt
This commit is contained in:
@@ -91,7 +91,6 @@ func (b *backend) secretCredsRevoke(
|
||||
}
|
||||
username, ok := usernameRaw.(string)
|
||||
|
||||
|
||||
// Get our connection
|
||||
db, err := b.DB(req.Storage)
|
||||
if err != nil {
|
||||
|
||||
@@ -64,7 +64,7 @@ func wrapLoginPath(b *backend, loginPath *framework.Path) *framework.Path {
|
||||
func (b *backend) wrapLoginHandler(loginHandler framework.OperationFunc) framework.OperationFunc {
|
||||
return func(req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
|
||||
// login with original login function first
|
||||
resp, err := loginHandler(req, d);
|
||||
resp, err := loginHandler(req, d)
|
||||
if err != nil || resp.Auth == nil {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
@@ -21,4 +21,3 @@ func (e *codedError) Error() string {
|
||||
func (e *codedError) Code() int {
|
||||
return e.code
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user