JS: Accept other changes to UnusedVariable

This commit is contained in:
Asger F
2025-02-28 13:18:47 +01:00
parent e745f42291
commit d3de6d18a4
3 changed files with 5 additions and 5 deletions

View File

@@ -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;
}