File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
test/query-tests/Expressions/MissingAwait Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ predicate isBadPromiseContext(Expr expr) {
45
45
or
46
46
exists ( UnaryExpr e |
47
47
expr = e .getOperand ( ) and
48
- not e instanceof VoidExpr
48
+ not e instanceof VoidExpr and
49
+ not e instanceof DeleteExpr
49
50
)
50
51
or
51
52
expr = any ( UpdateExpr e ) .getOperand ( )
Original file line number Diff line number Diff line change 1
- | tsTest.ts:4:12:4:19 | cache[x] | Missing await. This value is always a promise. |
2
1
| tst.js:8:9:8:13 | thing | Missing await. The value 'thing' is always a promise. |
3
2
| tst.js:10:9:10:13 | thing | Missing await. The value 'thing' is always a promise. |
4
3
| tst.js:12:15:12:19 | thing | Missing await. The value 'thing' is always a promise. |
You can’t perform that action at this time.
0 commit comments