diff --git a/src/util.js b/src/util.js index 65117494..7d02358b 100644 --- a/src/util.js +++ b/src/util.js @@ -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); } }