Skip to content

Commit

Permalink
fix: lint warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Oct 31, 2024
1 parent effefc1 commit 3c30a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ program

program.parse();

console.log(program.args.join(' '))
console.log(program.opts())
nwbuild({
...program.opts(),
srcDir: program.args.join(' '),
Expand Down
7 changes: 4 additions & 3 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ async function getNodeManifest({
}

/**
*
* @param {any} option
* @returns {any}
* Function to convert `'true'` and `'false'` into `true` and `false`.
* `commander` does not do the conversion automatically.
* @param {any} option - a boolean type option
* @returns {any} Usually `undefined`, `true` or `false`. if not then it is validated later on.
*/
function str2Bool (option) {
if (typeof option === 'string') {
Expand Down

0 comments on commit 3c30a0c

Please sign in to comment.