Skip to content

Commit cf9d757

Browse files
committed
Remove unnecessary variables
1 parent 7a655ec commit cf9d757

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

  • go/ql/lib/upgrades/5ff5325d274ae4f86defa195577bc7c1370b72fa

‎go/ql/lib/upgrades/5ff5325d274ae4f86defa195577bc7c1370b72fa/upgrade.ql‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,12 @@ query predicate new_exprs(NewExpr id, int kind, NewExprParent parent, int idx) {
4949
idx = 0
5050
)
5151
or
52-
exists(Expr oldId, int oldKind, ExprParent oldParent, int oldIdx |
53-
exprs(oldId, oldKind, oldParent, oldIdx) and
54-
id = oldId and
55-
kind = oldKind and
56-
idx = oldIdx
57-
|
58-
exists(RangeStmt range | isRangeElementChild(oldParent, oldIdx, range) |
52+
exists(ExprParent oldParent | exprs(id, kind, oldParent, idx) |
53+
exists(RangeStmt range | isRangeElementChild(oldParent, idx, range) |
5954
parent = Fresh::map(TRangeElement(range))
6055
)
6156
or
62-
not isRangeElementChild(oldParent, oldIdx, _) and
57+
not isRangeElementChild(oldParent, idx, _) and
6358
parent = oldParent
6459
)
6560
}

0 commit comments

Comments
 (0)