mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -5,7 +5,7 @@ const app = express();
|
||||
app.get('/some/route', function(req, res) {
|
||||
let userName = req.param("userName");
|
||||
|
||||
// GOOD: Embed user-provided data using variables
|
||||
// OK - Embed user-provided data using variables
|
||||
let goodXPathExpr = xpath.parse("//users/user[login/text()=$userName]/home_dir/text()");
|
||||
goodXPathExpr.select({
|
||||
node: root,
|
||||
|
||||
Reference in New Issue
Block a user