Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored and simar7 committed Jul 25, 2023
1 parent 66a7191 commit aa1e390
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/adapters/terraform/aws/s3/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ func getVersioning(block *terraform.Block, a *adapter) s3.Versioning {
versioning.Enabled = *enabled
}

if val, ok := applyForBucketRelatedResource(a, block, "aws_s3_bucket_versioning", func(resource *terraform.Block) s3.Versioning {
return getVersioningFromResource(resource)
}); ok {
if val, ok := applyForBucketRelatedResource(a, block, "aws_s3_bucket_versioning", getVersioningFromResource); ok {
return val
}
return versioning
Expand Down Expand Up @@ -272,5 +270,6 @@ func applyForBucketRelatedResource[T any](a *adapter, block *terraform.Block, re
}

}
return *new(T), false
var res T
return res, false
}

0 comments on commit aa1e390

Please sign in to comment.