Skip to content

Commit

Permalink
rm toBool
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow committed Nov 5, 2019
1 parent 29f43d1 commit 8c49d8c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions third_party/terraform/utils/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package google
import (
"fmt"
"reflect"
"strconv"

"github.com/hashicorp/terraform-plugin-sdk/terraform"
)
Expand Down Expand Up @@ -80,14 +79,6 @@ func (d *ResourceDiffMock) Clear(key string) error {
return nil
}

func toBool(attribute string) (bool, error) {
// Handle the case where an unset value defaults to false
if attribute == "" {
return false, nil
}
return strconv.ParseBool(attribute)
}

func checkDataSourceStateMatchesResourceState(dataSourceName, resourceName string) func(*terraform.State) error {
return checkDataSourceStateMatchesResourceStateWithIgnores(dataSourceName, resourceName, map[string]struct{}{})
}
Expand Down

0 comments on commit 8c49d8c

Please sign in to comment.