Skip to content

Commit 7472cc7

Browse files
authored
refactor: remove unused arguments (#17)
1 parent cd599a7 commit 7472cc7

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/tasks/discover.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const glob = async (dir) => {
5555
return result.filter(f => !!f);
5656
};
5757

58-
const clean = async (copyFiles, dir) => glob(dir)
58+
const clean = async (dir) => glob(dir)
5959
.then(files => Promise.all(files.map(file => {
6060
return isSymlink(file)
6161
.then(sym => {
@@ -66,7 +66,7 @@ const clean = async (copyFiles, dir) => glob(dir)
6666
});
6767
})));
6868

69-
const getAllPackages = async (logger, dirs) => {
69+
const getAllPackages = async (dirs) => {
7070
const result = [];
7171
for (let i = 0; i < dirs.length; i++) {
7272
result.push(await utils.npmPackages(dirs[i]));
@@ -107,7 +107,7 @@ const removeSoftDeleted = (logger, disabled) => iter => {
107107
return true;
108108
};
109109

110-
const action = async ({logger, options, args, commander}) => {
110+
const action = async ({logger, options, args}) => {
111111
const dist = options.dist();
112112
const copyFiles = args.copy === true;
113113
const relativeSymlinks = !copyFiles && args.relative === true;
@@ -120,7 +120,7 @@ const action = async ({logger, options, args, commander}) => {
120120

121121
options.config.discover.forEach(d => logger.info('Including', d));
122122

123-
const found = await getAllPackages(logger, options.config.discover);
123+
const found = await getAllPackages(options.config.discover);
124124

125125
const packages = found
126126
.filter(removeSoftDeleted(logger, options.config.disabled));
@@ -177,8 +177,8 @@ const action = async ({logger, options, args, commander}) => {
177177
await fs.ensureDir(dist.root);
178178
await fs.ensureDir(dist.themes);
179179
await fs.ensureDir(dist.packages);
180-
await clean(copyFiles, dist.themes);
181-
await clean(copyFiles, dist.packages);
180+
await clean(dist.themes);
181+
await clean(dist.packages);
182182

183183
logger.info('Placing packages in dist...');
184184

src/tasks/watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const wlog = (logger, cb) => (err, status) => {
106106
};
107107

108108

109-
const action = async ({logger, options, args}) => {
109+
const action = async ({logger, options}) => {
110110
logger.info('Looking up npm packages...');
111111

112112
const print = list => {

0 commit comments

Comments
 (0)