From 89a8624d8c4128b7a0ff1887e3042f7cf6849fe8 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 1 Dec 2020 16:28:28 -0500 Subject: [PATCH] instances: staticcheck --- instances/expander_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/instances/expander_test.go b/instances/expander_test.go index e143d1b98..900d716d5 100644 --- a/instances/expander_test.go +++ b/instances/expander_test.go @@ -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() {