Remove Duplicate Error Check That's Unreachable And Is Not Tested Against (#5799)

pull/5478/head
Ryan Derr 12 months ago committed by GitHub
parent f9c47f09a8
commit cf35dce3fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -142,9 +142,6 @@ func workerAuthServerLedActivationTokenRewrapFn(ctx context.Context, dataKeyVers
if err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("failed to fetch kms wrapper for rewrapping"))
}
if err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("failed to retrieve updated key version id"))
}
for _, token := range tokens {
if err := token.decrypt(ctx, wrapper); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("failed to decrypt activation token"))

Loading…
Cancel
Save