From ed8f81831fa5092966b0b361cd7297c9729b63b3 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Sat, 4 Aug 2018 09:01:49 +0200 Subject: [PATCH] style: prettier --- lib/configure-map.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/configure-map.js b/lib/configure-map.js index 9a7b280..139398b 100644 --- a/lib/configure-map.js +++ b/lib/configure-map.js @@ -114,9 +114,7 @@ module.exports = function (original, length, options) { if (get) return get(args); return String(args[0]); }, - has: function (id) { - return hasOwnProperty.call(cache, id); - }, + has: function (id) { return hasOwnProperty.call(cache, id); }, delete: function (id) { var result; if (!hasOwnProperty.call(cache, id)) return; @@ -138,9 +136,7 @@ module.exports = function (original, length, options) { return on.call(this, type, listener); }, emit: emit, - updateEnv: function () { - original = conf.original; - } + updateEnv: function () { original = conf.original; } }; if (get) { extDel = defineLength(function (arg) { @@ -151,9 +147,7 @@ module.exports = function (original, length, options) { conf.delete(id); }, memLength); } else if (length === 0) { - extDel = function () { - return conf.delete("data"); - }; + extDel = function () { return conf.delete("data"); }; } else { extDel = function (arg) { if (resolve) arg = resolve(arguments)[0];