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"
"io/ioutil"
"path"
"reflect"
"strings"
"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) {
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 {
types := make([]string, 0, len(supportedTypes))
for k, _ := range supportedTypes {
for k := range supportedTypes {
types = append(types, k)
}