Commit 52e45c91 by James Cropcho

using strict mode (and it even caught something!)

parent 4707a789
......@@ -9,6 +9,8 @@ Please see https://github.com/variety/variety for details.
Released by Maypop Inc, © 2012-2015, under the MIT License. */
'use strict';
var log = function(message) {
if(!__quiet) { // mongo shell param, coming from https://github.com/mongodb/mongo/blob/5fc306543cd3ba2637e5cb0662cc375f36868b28/src/mongo/shell/dbshell.cpp#L624
print(message);
......@@ -154,7 +156,7 @@ var interimResults = {}; //hold results here until converted to final format
var numDocuments = 0;
db[collection].find(query).sort(sort).limit(limit).forEach(function(obj) {
//printjson(obj)
flattened = serializeDoc(obj, maxDepth);
var flattened = serializeDoc(obj, maxDepth);
//printjson(flattened)
for (var key in flattened){
var value = flattened[key];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment