mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Accept other changes to UnusedVariable
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function sum(xs, i) {
|
||||
var res = 0;
|
||||
for(;i++<xs.length;) // $ Alert - but flagged by js/unused-index-variable
|
||||
for(;i++<xs.length;) // OK - flagged by js/unused-index-variable
|
||||
res += xs[0];
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user