Skip to content

Commit 254c8cc

Browse files
authored
fix: staticcheck S1039 (#2425)
Fixes unnecessary use of `fmt.Sprint`. Signed-off-by: Ryan Johnson <[email protected]>
1 parent bc70dc5 commit 254c8cc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ linters:
129129
- linters:
130130
- staticcheck
131131
text: S1017
132-
- linters:
133-
- staticcheck
134-
text: S1039
135132
- linters:
136133
- staticcheck
137134
text: S1040

vsphere/resource_vsphere_virtual_machine_class_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package vsphere
55

66
import (
7-
"fmt"
87
"testing"
98

109
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
@@ -39,24 +38,24 @@ func TestAccResourceVSphereVmClass_vgpu(t *testing.T) {
3938
}
4039

4140
func testAccVSphereVmClassConfig() string {
42-
return fmt.Sprintf(`
41+
return `
4342
resource "vsphere_virtual_machine_class" "vm_class_1" {
4443
name = "test-class-11"
4544
cpus = 4
4645
memory = 4096
4746
memory_reservation = 100
4847
}
49-
`)
48+
`
5049
}
5150

5251
func testAccVSphereVmClassConfig_vgpu() string {
53-
return fmt.Sprintf(`
52+
return `
5453
resource "vsphere_virtual_machine_class" "vm_class_1" {
5554
name = "test-class-11"
5655
cpus = 4
5756
memory = 4096
5857
memory_reservation = 100
5958
vgpu_devices = [ "mockup-vmiop" ]
6059
}
61-
`)
60+
`
6261
}

0 commit comments

Comments
 (0)