Skip to content

Commit c9427c8

Browse files
authored
fix: handle empty params in smoke tests (#942)
1 parent bb06510 commit c9427c8

File tree

1 file changed

+1
-1
lines changed
  • smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration

1 file changed

+1
-1
lines changed

smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/SmokeTestGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ open class SmokeTestGenerator(
218218
.get()
219219
.inputShape,
220220
)
221-
if (testCase.params?.get()?.size() == 0) {
221+
if (!testCase.params.isPresent || testCase.params?.get()?.size() == 0) {
222222
writer.write("let input = ${inputShape.id.name}()")
223223
} else {
224224
writer

0 commit comments

Comments
 (0)