diff --git a/lib/utils.js b/lib/utils.js index 0d0be9d..273decb 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -19,8 +19,9 @@ if(typeof events.EventEmitter.prototype.once !== 'function') { function arrayString(val) { var result = '{'; for (var i = 0 ; i < val.length; i++) { - if (i > 0) + if (i > 0) { result = result + ','; + } if (val[i] instanceof Date) { result = result + JSON.stringify(val[i]); } @@ -31,8 +32,10 @@ function arrayString(val) { result = result + arrayString(val[i]); } else + { result = result + - (val[i] === null ? 'NULL' : JSON.stringify(val[i])); + (val[i] === null ? 'NULL' : JSON.stringify(val[i])); + } } result = result + '}'; return result;