1
0
Fork 0

make jslint happy

This commit is contained in:
Jan Steemann 2013-02-15 13:44:43 +01:00
parent 51c691a1cf
commit c96dfba3ff
1 changed files with 4 additions and 5 deletions

View File

@ -262,12 +262,11 @@ function get_api_collections (req, res) {
var collection = collections[i];
var rep = collectionRepresentation(collection);
if (excludeSystem && rep.name.substr(0, 1) === '_') {
continue;
// include system collections or exclude them?
if (! excludeSystem || rep.name.substr(0, 1) !== '_') {
list.push(rep);
names[rep.name] = rep;
}
list.push(rep);
names[rep.name] = rep;
}
var result = { collections : list, names : names };