Skip to content

Commit

Permalink
Remove unneeded map
Browse files Browse the repository at this point in the history
  • Loading branch information
appilon committed Jul 27, 2020
1 parent 1cacb60 commit baa57e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions aws/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ func init() {
// effectively singletons for the lifecycle of a resource.Test
var providerNames = []string{"aws", "awseast", "awswest", "awsalternate", "awsus-east-1", "awsalternateaccountalternateregion", "awsalternateaccountsameregion", "awssameaccountalternateregion", "awsthird"}
var factories = make(map[string]terraform.ResourceProviderFactory, len(providerNames))
var singletons = make(map[string]*schema.Provider, len(providerNames))
for _, name := range providerNames {
p := Provider().(*schema.Provider)
singletons[name] = p
factories[name] = func() (terraform.ResourceProvider, error) {
return p, nil
}
Expand Down

0 comments on commit baa57e1

Please sign in to comment.