Skip to content

Commit e7e0864

Browse files
committed
Correctly handles NotFound in Read
1 parent 71008b5 commit e7e0864

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/service/s3/bucket_lifecycle_configuration.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,6 @@ func (r *bucketLifecycleConfigurationResource) Read(ctx context.Context, request
484484

485485
return nil
486486
})
487-
if err != nil {
488-
return
489-
}
490487
if tfresource.NotFound(err) {
491488
response.Diagnostics.Append(fwdiag.NewResourceNotFoundWarningDiagnostic(err))
492489
response.State.RemoveResource(ctx)

0 commit comments

Comments
 (0)