Skip to content

Commit

Permalink
chore(util): resolve linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Nov 15, 2024
1 parent 9378d6f commit 0c757d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ export const validate = async (options, releaseInfo) => {
throw new Error('Native addons are not supported for NW.js v0.82.0 and below');
}

if (typeof options.zip !== "boolean" && options.zip !== "zip" && options.zip !== "tar" && options.zip !== "tgz") {
if (typeof options.zip !== 'boolean' &
options.zip !== 'zip' &&
options.zip !== 'tar' &&
options.zip !== 'tgz') {
throw new Error('Expected options.zip to be a boolean, `zip`, `tar` or `tgz`. Got ' + typeof options.zip);
}
}
Expand Down

0 comments on commit 0c757d9

Please sign in to comment.