Skip to content

Commit

Permalink
semistandard --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Dec 20, 2023
1 parent deff0ab commit 2025551
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/appdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function _findLibraries (appdir, appbin, appexs, disklibs) {
const exe = path.join(appdir, appbin);

const o = {
exe: exe,
exe,
lib: exe,
libs: disklibs
};
Expand Down
12 changes: 6 additions & 6 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ function compile (conf) {
}

module.exports = {
compile: compile,
fromOptions: fromOptions,
fromState: fromState,
helpMessage: helpMessage,
parse: parse,
shortHelpMessage: shortHelpMessage
compile,
fromOptions,
fromState,
helpMessage,
parse,
shortHelpMessage
};
2 changes: 1 addition & 1 deletion lib/fchk.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function (args, types) {
if (args.length !== types.length) {
throw new Error('Incorrect arguments count');
}
const stack = Array(...args).reverse();
const stack = [...args].reverse();
for (const t of types) {
const arg = typeof stack.pop();
if (t && arg !== t) {
Expand Down
6 changes: 3 additions & 3 deletions lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function execProgram (bin, arg, opt) {
resolve({
stdout: _out.toString(),
stderr: _err.toString(),
code: code
code
});
});
});
Expand Down Expand Up @@ -185,11 +185,11 @@ async function zip (cwd, ofile, src) {
if (use7zip) {
const zipFile = ofile + '.zip';
const args = ['a', zipFile, src];
await execProgram(getTool('7z'), args, { cwd: cwd });
await execProgram(getTool('7z'), args, { cwd });
await renameAsync(zipFile, ofile);
} else {
const args = ['-qry', ofile, src];
await execProgram(getTool('zip'), args, { cwd: cwd });
await execProgram(getTool('zip'), args, { cwd });
}
}

Expand Down

0 comments on commit 2025551

Please sign in to comment.