Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonba committed Jul 10, 2018
1 parent b0f23ce commit db78afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export function getRuleByIndex(bot: YveBot, idx: number): IRule {

export function isRuleMessageRequired(bot: YveBot, rule: IRule): boolean {
if (
rule.message ||
!rule.type ||
!bot.types[rule.type] ||
typeof bot.types[rule.type].requiredMessage !== 'function'
Expand Down

0 comments on commit db78afa

Please sign in to comment.