mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
removed dupe i var
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user