mirror of
https://github.com/BreizhHardware/memoizee.git
synced 2026-01-18 16:37:21 +01:00
-- whitespace
This commit is contained in:
11
lib/_base.js
11
lib/_base.js
@@ -28,9 +28,7 @@ module.exports = exports = function (core) {
|
||||
if (isNaN(options.length)) {
|
||||
length = fn.length;
|
||||
// Special case
|
||||
if (options.async && ext.async) {
|
||||
--length;
|
||||
}
|
||||
if (options.async && ext.async) --length;
|
||||
} else {
|
||||
length = (options.length === false) ? false : (options.length >>> 0);
|
||||
}
|
||||
@@ -38,11 +36,8 @@ module.exports = exports = function (core) {
|
||||
core(conf, length);
|
||||
|
||||
forEach(ext, function (fn, name) {
|
||||
if (fn.force) {
|
||||
fn(conf, options);
|
||||
} else if (options[name]) {
|
||||
fn(options[name], conf, options);
|
||||
}
|
||||
if (fn.force) fn(conf, options);
|
||||
else if (options[name]) fn(options[name], conf, options);
|
||||
});
|
||||
|
||||
fn = conf.fn;
|
||||
|
||||
Reference in New Issue
Block a user