mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
14 lines
325 B
JavaScript
14 lines
325 B
JavaScript
function f() {
|
|
if (1 > 0) {} // NOT OK - always true
|
|
if (1 - 1 >= 0) {} // NOT OK - always true
|
|
let one = 1;
|
|
let two = 2;
|
|
if (two > one) {} // NOT OK - always true
|
|
if (two <= one) {} // NOT OK - always false
|
|
}
|
|
|
|
function underscores(x) {
|
|
if (x >= 1_000_000) return; // OK
|
|
if (x >= 1_000) return; // OK
|
|
}
|