Skip to content

Commit 2025551

Browse files
radaretrufae
authored andcommitted
semistandard --fix
1 parent deff0ab commit 2025551

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

lib/appdir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function _findLibraries (appdir, appbin, appexs, disklibs) {
194194
const exe = path.join(appdir, appbin);
195195

196196
const o = {
197-
exe: exe,
197+
exe,
198198
lib: exe,
199199
libs: disklibs
200200
};

lib/config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ function compile (conf) {
291291
}
292292

293293
module.exports = {
294-
compile: compile,
295-
fromOptions: fromOptions,
296-
fromState: fromState,
297-
helpMessage: helpMessage,
298-
parse: parse,
299-
shortHelpMessage: shortHelpMessage
294+
compile,
295+
fromOptions,
296+
fromState,
297+
helpMessage,
298+
parse,
299+
shortHelpMessage
300300
};

lib/fchk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = function (args, types) {
22
if (args.length !== types.length) {
33
throw new Error('Incorrect arguments count');
44
}
5-
const stack = Array(...args).reverse();
5+
const stack = [...args].reverse();
66
for (const t of types) {
77
const arg = typeof stack.pop();
88
if (t && arg !== t) {

lib/tools.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function execProgram (bin, arg, opt) {
5555
resolve({
5656
stdout: _out.toString(),
5757
stderr: _err.toString(),
58-
code: code
58+
code
5959
});
6060
});
6161
});
@@ -185,11 +185,11 @@ async function zip (cwd, ofile, src) {
185185
if (use7zip) {
186186
const zipFile = ofile + '.zip';
187187
const args = ['a', zipFile, src];
188-
await execProgram(getTool('7z'), args, { cwd: cwd });
188+
await execProgram(getTool('7z'), args, { cwd });
189189
await renameAsync(zipFile, ofile);
190190
} else {
191191
const args = ['-qry', ofile, src];
192-
await execProgram(getTool('zip'), args, { cwd: cwd });
192+
await execProgram(getTool('zip'), args, { cwd });
193193
}
194194
}
195195

0 commit comments

Comments
 (0)