Skip to content

Commit

Permalink
Fix golangci-lint 'gomnd'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Apr 19, 2024
1 parent 649e105 commit 1d00481
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion internal/service/ce/anomaly_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import (
"github.com/hashicorp/terraform-provider-aws/names"
)

const (
anomalySubscriptionRootElementSchemaLevel = 2
)

// @SDKResource("aws_ce_anomaly_subscription", name="Anomaly Subscription")
// @Tags(identifierAttribute="id")
func resourceAnomalySubscription() *schema.Resource {
Expand Down Expand Up @@ -96,7 +100,7 @@ func resourceAnomalySubscription() *schema.Resource {
MaxItems: 1,
Computed: true,
Optional: true,
Elem: expressionElem(2),
Elem: expressionElem(anomalySubscriptionRootElementSchemaLevel),
},
},

Expand Down
6 changes: 5 additions & 1 deletion internal/service/ce/tags_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/errs/sdkdiag"
)

const (
tagRootElementSchemaLevel = 2
)

// @SDKDataSource("aws_ce_tags", name="Tags")
func dataSourceTags() *schema.Resource {
return &schema.Resource{
Expand All @@ -27,7 +31,7 @@ func dataSourceTags() *schema.Resource {
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Elem: expressionElem(2),
Elem: expressionElem(tagRootElementSchemaLevel),
},
"search_string": {
Type: schema.TypeString,
Expand Down

0 comments on commit 1d00481

Please sign in to comment.