Skip to content

Commit 3851e80

Browse files
committed
Removes unneeded gomnd ignored functions
1 parent 90dab1b commit 3851e80

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.golangci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ linters-settings:
4747
- request.ConstantWaiterDelay
4848
- request.WithWaiterMaxAttempts
4949
# AWS Provider
50-
- mapMaxItems
51-
- rootStatementSchema
52-
- webACLRootStatementSchema
5350
- nullable.*
54-
- sweep.SweepOrchestratorContext
5551
# Terraform Plugin SDK
5652
- resource.Retry
5753
- schema.DefaultTimeout

internal/service/events/consts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ const (
55
)
66

77
const (
8-
mapMaxItemsCount = 100
8+
targetInputTransformerMaxInputPaths = 100
99
)

internal/service/events/target.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func ResourceTarget() *schema.Resource {
335335
Optional: true,
336336
Elem: &schema.Schema{Type: schema.TypeString},
337337
ValidateFunc: validation.All(
338-
mapMaxItems(mapMaxItemsCount),
338+
mapMaxItems(targetInputTransformerMaxInputPaths),
339339
mapKeysDoNotMatch(regexp.MustCompile(`^AWS.*$`), "input_path must not start with \"AWS\""),
340340
),
341341
},

0 commit comments

Comments
 (0)