Skip to content

Commit

Permalink
Restyled by gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored Mar 31, 2022
1 parent ad66fcd commit 1d0bc33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion task/aws/resources/resource_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (b *Bucket) Delete(ctx context.Context) error {
input := s3.DeleteBucketInput{
Bucket: aws.String(b.Identifier),
}

if _, err := b.Client.Services.S3.DeleteBucket(ctx, &input); err != nil {
var e smithy.APIError
if errors.As(err, &e) && e.ErrorCode() != "NoSuchBucket" {
Expand Down
5 changes: 5 additions & 0 deletions task/common/machine/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ func Delete(ctx context.Context, destination string) error {
return err
}

ctx, fi := filter.AddConfig(ctx)
if err := fi.AddRule("+ **"); err != nil {
return err
}

actions := []func(context.Context) error{
func(ctx context.Context) error {
return operations.Delete(ctx, destinationFileSystem)
Expand Down

0 comments on commit 1d0bc33

Please sign in to comment.