mirror of https://github.com/k3s-io/k3s.git
Remove double error check
Signed-off-by: Derek Nola <derek.nola@suse.com>pull/12097/head
parent
37ceaca12a
commit
9e5267e384
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue