mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -37,7 +37,7 @@ function foo1() {
|
||||
const foobar = 4;
|
||||
|
||||
const data = {name: name, date: date};
|
||||
writer.emit("Name: ${name}, Date: ${date}.", data); // OK
|
||||
writer.emit("Name: ${name}, Date: ${date}.", data);
|
||||
|
||||
writer.emit("Name: ${name}, Date: ${date}, ${foobar}", data); // NOT OK - `foobar` is not in `data`.
|
||||
writer.emit("Name: ${name}, Date: ${date}, ${foobar}", data); // $ Alert - `foobar` is not in `data`.
|
||||
}
|
||||
Reference in New Issue
Block a user