Remove double error check

Signed-off-by: Derek Nola <derek.nola@suse.com>
pull/12097/head
Derek Nola 2025-03-26 11:50:30 -07:00
parent 37ceaca12a
commit 9e5267e384
1 changed files with 0 additions and 3 deletions

View File

@ -71,9 +71,6 @@ func tokenRotate(ctx context.Context, control *config.Control, newToken string)
return err
}
if err != nil {
return err
}
oldToken, found := passwd.Pass("server")
if !found {
return fmt.Errorf("server token not found")