Skip to content

Commit

Permalink
Fix provisioning profile option validation
Browse files Browse the repository at this point in the history
  • Loading branch information
sethlu committed Nov 6, 2016
1 parent 0b1dae3 commit 78b347d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function validateSignOptsAsync (opts) {
}

if (opts['provisioning-profile']) {
if (typeof opts['provisioning-profile'] !== 'string' || !(opts['provisioning-profile'] instanceof ProvisioningProfile)) return Promise.reject(new Error('Path to provisioning profile should be a string or a ProvisioningProfile object.'))
if (typeof opts['provisioning-profile'] !== 'string' && !(opts['provisioning-profile'] instanceof ProvisioningProfile)) return Promise.reject(new Error('Path to provisioning profile should be a string or a ProvisioningProfile object.'))
}

if (opts['type']) {
Expand Down

0 comments on commit 78b347d

Please sign in to comment.