Skip to content

Commit

Permalink
!
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Aug 26, 2017
1 parent 9b2f2f1 commit bbfb53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rule-context.js
Expand Up @@ -196,7 +196,7 @@ class RuleContext {
if (descriptor.message) {
throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");
}
if (!messages || Object.prototype.hasOwnProperty.call(messages, id)) {
if (!messages || !Object.prototype.hasOwnProperty.call(messages, id)) {
throw new TypeError(`context.report() called with a messageId of '${id}' which is not present in the 'messages' config: ${JSON.stringify(messages, null, 2)}`);
}

Expand Down

0 comments on commit bbfb53f

Please sign in to comment.