Skip to content

Commit

Permalink
Minor code refactor (#1945)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
akankshakumari393 and mergify[bot] committed Mar 9, 2023
1 parent 3ff4e4d commit 83ab689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/aws/rds/rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/rds"
rdserr "github.com/aws/aws-sdk-go/service/rds"
"github.com/kanisterio/kanister/pkg/poll"
"github.com/pkg/errors"
)
Expand Down Expand Up @@ -130,7 +129,7 @@ func (r RDS) WaitUntilDBClusterDeleted(ctx context.Context, dbClusterID string)
}
if _, err := r.DescribeDBClustersWithContext(ctx, dci); err != nil {
if aerr, ok := err.(awserr.Error); ok {
if aerr.Code() == rdserr.ErrCodeDBClusterNotFoundFault {
if aerr.Code() == rds.ErrCodeDBClusterNotFoundFault {
return true, nil
}
return false, nil
Expand Down

0 comments on commit 83ab689

Please sign in to comment.