From f7b01666d86df88cbbda68a49953d728897315cb Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Sat, 4 Aug 2018 09:01:03 +0200 Subject: [PATCH] style: prettier --- ext/async.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/ext/async.js b/ext/async.js index c520e15..a4cbd8d 100644 --- a/ext/async.js +++ b/ext/async.js @@ -30,9 +30,8 @@ require("../lib/registered-extensions").async = function (tbi, conf) { } return base.apply(currentContext = this, currentArgs = args); }, base); - try { - mixin(conf.memoized, base); - } catch (ignore) {} + try { mixin(conf.memoized, base); } + catch (ignore) {} // From cache (sync) conf.on("get", function (id) { @@ -100,9 +99,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; }; @@ -151,10 +148,7 @@ require("../lib/registered-extensions").async = function (tbi, conf) { var oldCache = cache; cache = create(null); conf.emit( - "clearasync", - objectMap(oldCache, function (data) { - return slice.call(data.args, 1); - }) + "clearasync", objectMap(oldCache, function (data) { return slice.call(data.args, 1); }) ); }); };