Skip to content

Commit bb88ce2

Browse files
chore(util): add null check for options.app.NSLocalNetworkUsageDescription
1 parent c4c2f06 commit bb88ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ export const validate = async (options, releaseInfo) => {
539539
if (typeof options.app.NSHumanReadableCopyright !== 'string') {
540540
throw new Error('Expected options.app.NSHumanReadableCopyright to be a string. Got ' + options.app.NSHumanReadableCopyright);
541541
}
542-
if (typeof options.app.NSLocalNetworkUsageDescription !== 'string') {
542+
if (options.app.NSLocalNetworkUsageDescription && typeof options.app.NSLocalNetworkUsageDescription !== 'string') {
543543
throw new Error('Expected options.app.NSLocalNetworkUsageDescription to be a string. Got ' + options.app.NSLocalNetworkUsageDescription);
544544
}
545545
} else {

0 commit comments

Comments
 (0)