From e45b526596aa08fb7d2718404b9b97db8889e93a Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 28 Jul 2014 12:15:47 +0200 Subject: [PATCH] -- whitespace --- ext/async.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ext/async.js b/ext/async.js index d8589a7..c8a2431 100644 --- a/ext/async.js +++ b/ext/async.js @@ -34,11 +34,8 @@ require('../lib/registered-extensions').async = function (tbi, conf) { // Unresolved if (waiting[id]) { - if (typeof waiting[id] === 'function') { - waiting[id] = [waiting[id], currentCallback]; - } else { - waiting[id].push(currentCallback); - } + if (typeof waiting[id] === 'function') waiting[id] = [waiting[id], currentCallback]; + else waiting[id].push(currentCallback); currentCallback = null; return; } @@ -91,9 +88,7 @@ require('../lib/registered-extensions').async = function (tbi, conf) { if (typeof cb === 'function') { result = apply.call(cb, this, args); } else { - cb.forEach(function (cb) { - result = apply.call(cb, this, args); - }, this); + cb.forEach(function (cb) { result = apply.call(cb, this, args); }, this); } return result; };