feat: refactoring project
This commit is contained in:
18
node_modules/webpack/lib/Cache.js
generated
vendored
18
node_modules/webpack/lib/Cache.js
generated
vendored
@@ -38,16 +38,14 @@ const {
|
||||
* @param {function(Error=): void} callback callback
|
||||
* @returns {function(Error=): void} callback
|
||||
*/
|
||||
const needCalls = (times, callback) => {
|
||||
return err => {
|
||||
if (--times === 0) {
|
||||
return callback(err);
|
||||
}
|
||||
if (err && times > 0) {
|
||||
times = 0;
|
||||
return callback(err);
|
||||
}
|
||||
};
|
||||
const needCalls = (times, callback) => err => {
|
||||
if (--times === 0) {
|
||||
return callback(err);
|
||||
}
|
||||
if (err && times > 0) {
|
||||
times = 0;
|
||||
return callback(err);
|
||||
}
|
||||
};
|
||||
|
||||
class Cache {
|
||||
|
||||
Reference in New Issue
Block a user