make indentation and blocking style consistent.

This commit is contained in:
Andrew Dunstan 2013-02-22 09:37:29 -05:00
parent a3af2a21cf
commit c5b88dbff2

View File

@ -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,9 +32,11 @@ function arrayString(val) {
result = result + arrayString(val[i]);
}
else
{
result = result +
(val[i] === null ? 'NULL' : JSON.stringify(val[i]));
}
}
result = result + '}';
return result;
}