style: prettier

This commit is contained in:
Mariusz Nowak
2018-08-04 09:01:49 +02:00
parent 6294d5f942
commit ed8f81831f

View File

@@ -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];