mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// NOT OK
|
||||
function sum(xs, start) {
|
||||
function sum(xs, start) { // $ Alert
|
||||
if (arguments.length < 2)
|
||||
start = 0;
|
||||
|
||||
@@ -10,7 +9,7 @@ function sum(xs, start) {
|
||||
return sum;
|
||||
}
|
||||
|
||||
// OK
|
||||
|
||||
function sum(xs, start) {
|
||||
if (typeof start === 'undefined')
|
||||
start = 0;
|
||||
@@ -22,7 +21,7 @@ function sum(xs, start) {
|
||||
return sum;
|
||||
}
|
||||
|
||||
// OK
|
||||
|
||||
function sum(xs, _start) {
|
||||
var start = arguments.length < 2 ? _start : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user