mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
unused variable
vet can now catch these in closures
This commit is contained in:
parent
4b49a323c3
commit
d91dc1a13e
@ -470,10 +470,7 @@ func TestTest_importStateIdFuncFail(t *testing.T) {
|
||||
return s, nil
|
||||
}
|
||||
|
||||
checked := false
|
||||
checkFn := func(s []*terraform.InstanceState) error {
|
||||
checked = true
|
||||
|
||||
if s[0].ID != "foo" {
|
||||
return fmt.Errorf("bad: %#v", s)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user