Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra committed Aug 1, 2022
1 parent ab94124 commit a18af39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions pkg/driftctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"io/ioutil"
"path"
"reflect"
"strings"
"testing"

Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion pkg/resource/resource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a18af39

Please sign in to comment.