removed dupe i var

v1.18.x
Baris Soner Usakli 11 years ago
parent 8cda88790e
commit 42a7c037e6

@ -104,12 +104,13 @@ var db = require('./database'),
});
}
var indices = {};
for(var i=0; i<tids.length; ++i) {
var indices = {},
i = 0;
for(i=0; i<tids.length; ++i) {
indices[tids[i]] = start + i;
}
for(var i=0; i<topics.length; ++i) {
for(i=0; i<topics.length; ++i) {
topics[i].index = indices[topics[i].tid];
}

Loading…
Cancel
Save