all: fix nilness issues

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher
2023-12-05 10:32:35 -05:00
committed by Andrew Dunham
parent c5208f8138
commit a217f1fccf
7 changed files with 5 additions and 18 deletions

View File

@@ -710,9 +710,6 @@ func (c *Direct) doLogin(ctx context.Context, opt loginOpt) (mustRegen bool, new
c.persist = persist.View()
c.mu.Unlock()
if err != nil {
return regen, "", nil, err
}
if ctx.Err() != nil {
return regen, "", nil, ctx.Err()
}