From 0c757d9ab70b8073d9973f8850a4bfe15e24a61a Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Sat, 16 Nov 2024 01:23:43 +0530 Subject: [PATCH] chore(util): resolve linting errors --- src/util.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } }