mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-06 18:11:29 +01:00
Remove dead code in setupCredentials() (#15194)
This should have been removed as part of f09e39ea42 but somehow got forgotten.
This commit is contained in:
parent
a70d7e2494
commit
a918e5ed5c
@ -745,8 +745,6 @@ func (c *Core) persistAuth(ctx context.Context, table *MountTable, local *bool)
|
||||
// setupCredentials is invoked after we've loaded the auth table to
|
||||
// initialize the credential backends and setup the router
|
||||
func (c *Core) setupCredentials(ctx context.Context) error {
|
||||
var persistNeeded bool
|
||||
|
||||
c.authLock.Lock()
|
||||
defer c.authLock.Unlock()
|
||||
|
||||
@ -877,11 +875,6 @@ func (c *Core) setupCredentials(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
if persistNeeded {
|
||||
// persist non-local auth
|
||||
return c.persistAuth(ctx, c.auth, nil)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user