Skip to content

Commit deab954

Browse files
committed
use errors.Is instead of errors.As
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
1 parent 5a84e40 commit deab954

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/issuer/acme/dns/route53/route53.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ func (r *DNSProvider) changeRecord(action route53types.ChangeAction, fqdn, value
203203

204204
resp, err := r.client.ChangeResourceRecordSets(context.TODO(), reqParams)
205205
if err != nil {
206-
invalidChangeBatchErr := &route53types.InvalidChangeBatch{}
207-
if errors.As(err, &invalidChangeBatchErr) && action == route53types.ChangeActionDelete {
206+
if errors.Is(err, &route53types.InvalidChangeBatch{}) && action == route53types.ChangeActionDelete {
208207
r.log.V(logf.DebugLevel).WithValues("error", err).Info("ignoring InvalidChangeBatch error")
209208
// If we try to delete something and get a 'InvalidChangeBatch' that
210209
// means it's already deleted, no need to consider it an error.

0 commit comments

Comments
 (0)