From 364cf4b3ca25e8386ace50676d87a8ae7718faaa Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Sun, 30 Mar 2014 19:11:02 -0400 Subject: [PATCH] utils: convert tabs to spaces --- lib/utils.js | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 599aae2d..ce0d7bb7 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -17,28 +17,28 @@ if(typeof events.EventEmitter.prototype.once !== 'function') { // uses comma separator so won't work for types like box that use // a different array separator. function arrayString(val) { - var result = '{'; - for (var i = 0 ; i < val.length; i++) { - if(i > 0) { - result = result + ','; - } - if(val[i] instanceof Date) { - result = result + JSON.stringify(val[i]); - } - else if(typeof val[i] === 'undefined') { - result = result + 'NULL'; - } - else if(Array.isArray(val[i])) { - result = result + arrayString(val[i]); - } - else - { - result = result + - (val[i] === null ? 'NULL' : JSON.stringify(val[i])); - } - } - result = result + '}'; - return result; + var result = '{'; + for (var i = 0 ; i < val.length; i++) { + if(i > 0) { + result = result + ','; + } + if(val[i] instanceof Date) { + result = result + JSON.stringify(val[i]); + } + else if(typeof val[i] === 'undefined') { + result = result + 'NULL'; + } + else if(Array.isArray(val[i])) { + result = result + arrayString(val[i]); + } + else + { + result = result + + (val[i] === null ? 'NULL' : JSON.stringify(val[i])); + } + } + result = result + '}'; + return result; } //converts values from javascript types