Skip to content

Commit

Permalink
Merge pull request #65 from sethlu/bug-fix-63
Browse files Browse the repository at this point in the history
Fix opts.ignore validation logic
  • Loading branch information
sethlu committed Jul 3, 2016
2 parents b334f1b + 7e8dea1 commit 1e8a8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function signApplicationAsync (opts) {
*/
function signAsync (opts) {
if (opts.ignore) {
if (typeof opts.ignore !== 'function' || typeof opts.ignore !== 'string') return Promise.reject(new Error('Ignore filter should be either a function or a string.'))
if (typeof opts.ignore !== 'function' && typeof opts.ignore !== 'string') return Promise.reject(new Error('Ignore filter should be either a function or a string.'))
}

return validateOptsApplicationAsync(opts)
Expand Down

0 comments on commit 1e8a8da

Please sign in to comment.