Skip to content

Commit 37cbf9c

Browse files
authored
fix: ANY_STRING_EQUALS waiter matcher match on one string (#947)
1 parent ca8a96a commit 37cbf9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/waiters/WaiterAcceptorGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class WaiterAcceptorGenerator(
124124
)
125125
PathComparator.ALL_STRING_EQUALS ->
126126
writer.write(
127-
"return (\$L?.count ?? 0) > 1 && (\$L?.allSatisfy { \$N.compare($$0, ==, \$S) } ?? false)",
127+
"return (\$L?.count ?? 0) >= 1 && (\$L?.allSatisfy { \$N.compare($$0, ==, \$S) } ?? false)",
128128
actual.name,
129129
actual.name,
130130
SmithyWaitersAPITypes.JMESUtils,

0 commit comments

Comments
 (0)