From a273e2335c29922e662b7cc69aeeb0ffe40fba33 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:41:27 +0530 Subject: [PATCH] fix(util): validate options.app.company iff defined --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 9046275f..e217bdbb 100644 --- a/src/util.js +++ b/src/util.js @@ -564,7 +564,7 @@ export const validate = async (options, releaseInfo) => { if (options.app.comments && typeof options.app.comments !== 'string') { throw new Error('Expected options.app.comments to be a string. Got ' + options.app.comments); } - if (typeof options.app.company !== 'string') { + if (options.app.company && typeof options.app.company !== 'string') { throw new Error('Expected options.app.company to be a string. Got ' + options.app.company); } if (typeof options.app.fileDescription !== 'string') {