Skip to content

Commit

Permalink
Fixes logical error in options check (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Mar 27, 2019
1 parent 205e992 commit a61183d
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 @@ -7,7 +7,7 @@ module.exports = options => {
if (!options.connectionString) {
throw Error('Missing required input: options.connectionString')
}
if (!options.topicName || !options.queueName) {
if (!options.topicName && !options.queueName) {
throw Error('Missing required input: missing options.topicName or options.queueName')
}

Expand Down

0 comments on commit a61183d

Please sign in to comment.