Skip to content

Commit a18af39

Browse files
committed
fix: linter
1 parent ab94124 commit a18af39

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

pkg/driftctl_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"io/ioutil"
66
"path"
7-
"reflect"
87
"strings"
98
"testing"
109

@@ -111,15 +110,6 @@ func runTest(t *testing.T, cases TestCases) {
111110
}
112111
}
113112

114-
func matchByAttributes(input, attrs map[string]interface{}) bool {
115-
for k, v := range attrs {
116-
if value, ok := input[k]; !ok || !reflect.DeepEqual(value, v) {
117-
return false
118-
}
119-
}
120-
return true
121-
}
122-
123113
func TestDriftctlRun_BasicBehavior(t *testing.T) {
124114

125115
cases := TestCases{
@@ -1591,8 +1581,3 @@ func TestDriftctlRun_TestResourcesNormalization(t *testing.T) {
15911581
}
15921582

15931583
}
1594-
1595-
func getSchema(repo dctlresource.SchemaRepositoryInterface, resourceType string) *resource.Schema {
1596-
sch, _ := repo.GetSchema(resourceType)
1597-
return sch
1598-
}

pkg/resource/resource_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func IsResourceTypeSupported(ty string) bool {
260260

261261
func GetSupportedTypes() []string {
262262
types := make([]string, 0, len(supportedTypes))
263-
for k, _ := range supportedTypes {
263+
for k := range supportedTypes {
264264
types = append(types, k)
265265
}
266266

0 commit comments

Comments
 (0)