Skip to content

Commit 09fd5f0

Browse files
committed
tidy
1 parent 2f36714 commit 09fd5f0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

helper/resource/testing_new_import_state.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ func testStepNewImportState(ctx context.Context, t testing.T, helper *plugintest
126126
case step.ConfigExact:
127127
break
128128

129-
default:
130-
if kind.plannable() && kind.resourceIdentity() {
131-
testStepConfig = appendImportBlockWithIdentity(testStepConfig, resourceName, priorIdentityValues)
132-
} else if kind.plannable() {
133-
testStepConfig = appendImportBlock(testStepConfig, resourceName, importId)
134-
}
129+
case kind.plannable() && kind.resourceIdentity():
130+
testStepConfig = appendImportBlockWithIdentity(testStepConfig, resourceName, priorIdentityValues)
131+
132+
case kind.plannable():
133+
testStepConfig = appendImportBlock(testStepConfig, resourceName, importId)
135134
}
136135

137136
if testStepConfig == nil {

0 commit comments

Comments
 (0)