Remove Duplicate Error Check That's Unreachable And Is Not Tested Against (#5799)
This commit is contained in:
1 parent
f9c47f09a8
commit
cf35dce3fa
1 file changed
-3
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user