Skip to content

Commit

Permalink
fix(util): validate options.app.company iff defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra authored Nov 26, 2024
1 parent 2dbd51d commit a273e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit a273e23

Please sign in to comment.