Remove dead code in setupCredentials() (#15194)

This should have been removed as part of f09e39ea42 but somehow got
forgotten.
This commit is contained in:
Rémi Lapeyre 2022-04-27 16:47:04 +02:00 committed by GitHub
parent cca8244040
commit 089b6ea970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -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 // setupCredentials is invoked after we've loaded the auth table to
// initialize the credential backends and setup the router // initialize the credential backends and setup the router
func (c *Core) setupCredentials(ctx context.Context) error { func (c *Core) setupCredentials(ctx context.Context) error {
var persistNeeded bool
c.authLock.Lock() c.authLock.Lock()
defer c.authLock.Unlock() 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 return nil
} }