Skip to content

Commit 188ad6a

Browse files
committed
Swift: another attempt at fixing downgrade script
1 parent 9975a18 commit 188ad6a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

swift/downgrades/dd1bfe298d87cd82cb0d26e3349ada7244778785/for_in_downgrade.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ query predicate new_for_each_stmts(
3232
) {
3333
for_each_stmts(stmt, pattern, body) and
3434
for_each_stmt_iterator_vars(stmt, iteratorVar) and
35-
(
36-
iteratorVar instanceof @pattern_binding_decl and
37-
pattern_binding_decl_inits(iteratorVar, 0, sequence)
38-
)
35+
pattern_binding_decl_inits(iteratorVar, _, sequence)
3936
}
4037

4138
query predicate new_pattern_binding_decls(Element id) {

0 commit comments

Comments
 (0)