instances: staticcheck

This commit is contained in:
James Bardin 2020-12-01 16:28:28 -05:00
parent d22e08bd32
commit 89a8624d8c

View File

@ -433,17 +433,6 @@ func TestExpander(t *testing.T) {
})
}
func mustResourceAddr(str string) addrs.Resource {
addr, diags := addrs.ParseAbsResourceStr(str)
if diags.HasErrors() {
panic(fmt.Sprintf("invalid resource address: %s", diags.Err()))
}
if !addr.Module.IsRoot() {
panic("invalid resource address: includes module path")
}
return addr.Resource
}
func mustAbsResourceInstanceAddr(str string) addrs.AbsResourceInstance {
addr, diags := addrs.ParseAbsResourceInstanceStr(str)
if diags.HasErrors() {