Skip to content

Commit deb6782

Browse files
committed
JS: Translate a missed OK-style comment
1 parent ee7b31d commit deb6782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/test/query-tests/Security/CWE-754/UnvalidatedDynamicMethodCallGood4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ actions.put("pause", function pause(data) {
1212
app.get('/perform/:action/:payload', function(req, res) {
1313
if (typeof actions.get(req.params.action) === 'function') {
1414
let action = actions.get(req.params.action);
15-
res.end(action(req.params.payload)); // OK but flagged [INCONSISTENCY]. `action` is either the `play` or the `pause` function from above
15+
res.end(action(req.params.payload)); // $ SPURIOUS: Alert - `action` is either the `play` or the `pause` function from above
1616
} else {
1717
res.end("Unsupported action.");
1818
}
19-
});
19+
});

0 commit comments

Comments
 (0)