fix: linter

main
Elie CHARRA 2022-07-28 11:56:59 +02:00 committed by Elie
parent ab94124bab
commit a18af39da8
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
2 changed files with 1 additions and 16 deletions

View File

@ -4,7 +4,6 @@ import (
"encoding/json" "encoding/json"
"io/ioutil" "io/ioutil"
"path" "path"
"reflect"
"strings" "strings"
"testing" "testing"
@ -111,15 +110,6 @@ func runTest(t *testing.T, cases TestCases) {
} }
} }
func matchByAttributes(input, attrs map[string]interface{}) bool {
for k, v := range attrs {
if value, ok := input[k]; !ok || !reflect.DeepEqual(value, v) {
return false
}
}
return true
}
func TestDriftctlRun_BasicBehavior(t *testing.T) { func TestDriftctlRun_BasicBehavior(t *testing.T) {
cases := TestCases{ cases := TestCases{
@ -1591,8 +1581,3 @@ func TestDriftctlRun_TestResourcesNormalization(t *testing.T) {
} }
} }
func getSchema(repo dctlresource.SchemaRepositoryInterface, resourceType string) *resource.Schema {
sch, _ := repo.GetSchema(resourceType)
return sch
}

View File

@ -260,7 +260,7 @@ func IsResourceTypeSupported(ty string) bool {
func GetSupportedTypes() []string { func GetSupportedTypes() []string {
types := make([]string, 0, len(supportedTypes)) types := make([]string, 0, len(supportedTypes))
for k, _ := range supportedTypes { for k := range supportedTypes {
types = append(types, k) types = append(types, k)
} }