Skip to content

Commit 58b8929

Browse files
fix: remove unnecessary fmt.Sprintf calls to fix S1039 lint errors
- Remove fmt.Sprintf wrapping for static strings on lines 243 and 265 - This fixes the staticcheck S1039 errors reported by the linter Co-authored-by: Brian - oozou <lycbrian@users.noreply.github.com>
1 parent b84d4b3 commit 58b8929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/terraform_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func testAlarmsCreated(t *testing.T, terraformOptions *terraform.Options, region
240240
// Test alarms for Redis traditional cluster
241241
if redisReplicationGroupId != "" {
242242
input := &cloudwatch.DescribeAlarmsInput{
243-
AlarmNamePrefix: aws.String(fmt.Sprintf("example-example-redis-test-redis_high_CPU")),
243+
AlarmNamePrefix: aws.String("example-example-redis-test-redis_high_CPU"),
244244
}
245245

246246
result, err := client.DescribeAlarms(context.TODO(), input)
@@ -262,7 +262,7 @@ func testAlarmsCreated(t *testing.T, terraformOptions *terraform.Options, region
262262
// Test alarms for Valkey traditional cluster
263263
if valkeyReplicationGroupId != "" {
264264
input := &cloudwatch.DescribeAlarmsInput{
265-
AlarmNamePrefix: aws.String(fmt.Sprintf("example-example-valkey-test-redis_high_CPU")),
265+
AlarmNamePrefix: aws.String("example-example-valkey-test-redis_high_CPU"),
266266
}
267267

268268
result, err := client.DescribeAlarms(context.TODO(), input)

0 commit comments

Comments
 (0)