mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Mark a 'good' test as 'bad' and add Alert marker
The lack of whitespace around '&&' is problematic
This commit is contained in:
@@ -38,8 +38,8 @@ function ok9(x, y, z) {
|
||||
return x * y*z;
|
||||
}
|
||||
|
||||
function ok10(o, p) {
|
||||
return p in o&&o[p];
|
||||
function bad10(o, p) {
|
||||
return p in o&&o[p]; // $ Alert
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user