mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -6,10 +6,10 @@ function getDate() {
|
||||
return null;
|
||||
}
|
||||
console.log(date);
|
||||
return date && date.getTime(); // NOT OK
|
||||
return date && date.getTime(); // $ Alert
|
||||
}
|
||||
|
||||
function isNotNullOrString(obj) {
|
||||
return obj != null && obj != undefined && // NOT OK
|
||||
return obj != null && obj != undefined && // $ Alert
|
||||
typeof obj != 'string';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user