mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
10
javascript/ql/src/Statements/examples/DanglingElseGood2.js
Normal file
10
javascript/ql/src/Statements/examples/DanglingElseGood2.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function f() {
|
||||
if (cond1()) {
|
||||
if (cond2()) {
|
||||
return 23;
|
||||
} else {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
return 56;
|
||||
}
|
||||
Reference in New Issue
Block a user