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

This commit is contained in:
Ryan Derr authored and GitHub committed 2025-05-27 12:30:53 -05:00
1 parent f9c47f09a8
commit cf35dce3fa
1 file changed
-3
-3
View File
@@ -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"))