Skip to content

Commit

Permalink
remove unnecessary fmt.Sprintf calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Oct 29, 2024
1 parent 3524cc0 commit 7647f4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions equinix/data_source_metal_spot_market_price_acc_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package equinix

import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand All @@ -28,7 +27,7 @@ func TestAccDataSourceMetalSpotMarketPrice_basic(t *testing.T) {
}

func testAccDataSourceMetalSpotMarketPriceConfig_basic() string {
return fmt.Sprintf(`
return `
data "equinix_metal_spot_market_price" "metro" {
metro = "sv"
plan = "c3.medium.x86"
Expand All @@ -38,5 +37,5 @@ data "equinix_metal_spot_market_price" "facility" {
facility = "sv15"
plan = "c3.medium.x86"
}
`)
`
}
4 changes: 2 additions & 2 deletions equinix/resource_metal_project_api_key_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestAccMetalProjectAPIKey_basic(t *testing.T) {
}

func testAccMetalProjectAPIKeyConfig_basic() string {
return fmt.Sprintf(`
return `
resource "equinix_metal_project" "test" {
name = "tfacc-project-key-test"
Expand All @@ -42,7 +42,7 @@ resource "equinix_metal_project_api_key" "test" {
project_id = equinix_metal_project.test.id
description = "tfacc-project-key"
read_only = true
}`)
}`
}

func testAccMetalProjectAPIKeyCheckDestroyed(s *terraform.State) error {
Expand Down

0 comments on commit 7647f4c

Please sign in to comment.