Skip to content

Commit 4077196

Browse files
committed
Fixup: determineCompactors
1 parent 07f24af commit 4077196

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

index.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function makeCopier(copyConfig, assetManager, { compact } = {}) {
4949
filter: copyConfig.filter
5050
});
5151
let { fingerprint } = copyConfig;
52-
let compactors = determineCompactors(compact, copyConfig);
52+
let compactors = (compact && copyConfig.compact) || {};
5353

5454
return filepaths => {
5555
return Promise.all([
@@ -63,21 +63,6 @@ function makeCopier(copyConfig, assetManager, { compact } = {}) {
6363
};
6464
}
6565

66-
/**
67-
* Determine which compactors should be used
68-
*
69-
* @param {boolean | undefined} compact
70-
* @param {Config} copyConfig
71-
* @returns {CompactorMap}
72-
*/
73-
function determineCompactors(compact, copyConfig) {
74-
if(!compact) {
75-
return {};
76-
}
77-
78-
return copyConfig.compact || {};
79-
}
80-
8166
/**
8267
* If `source` is a directory, `target` is used as target directory -
8368
* otherwise, `target`'s parent directory is used

0 commit comments

Comments
 (0)