mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Merge master into next.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
| UselessConditional.js:101:18:101:18 | x | This use of variable 'x' always evaluates to false. |
|
||||
| UselessConditional.js:102:19:102:19 | x | This use of variable 'x' always evaluates to false. |
|
||||
| UselessConditional.js:103:23:103:23 | x | This use of variable 'x' always evaluates to false. |
|
||||
| UselessConditional.js:109:15:109:16 | {} | This expression always evaluates to true. |
|
||||
| UselessConditionalGood.js:58:12:58:13 | x2 | This use of variable 'x2' always evaluates to false. |
|
||||
| UselessConditionalGood.js:69:12:69:13 | xy | This use of variable 'xy' always evaluates to false. |
|
||||
| UselessConditionalGood.js:85:12:85:13 | xy | This use of variable 'xy' always evaluates to false. |
|
||||
|
||||
@@ -104,4 +104,9 @@ async function awaitFlow(){
|
||||
}
|
||||
});
|
||||
|
||||
(function(x,y) {
|
||||
let obj = (x && {}) || y; // OK
|
||||
if ((x && {}) || y) {} // NOT OK
|
||||
});
|
||||
|
||||
// semmle-extractor-options: --experimental
|
||||
|
||||
Reference in New Issue
Block a user