mirror of
https://github.com/BreizhHardware/memoizee.git
synced 2026-03-18 21:40:27 +01:00
style: prettier
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user