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
cca8244040
commit
089b6ea970
|
@ -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…
Reference in New Issue