Skip to content

Commit

Permalink
Remove includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Aguero committed Jul 1, 2019
1 parent 55881bb commit 4d24085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/best-practises/reason-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ReasonStringChecker extends BaseChecker {

isReasonStringStatement(ctx) {
const name = this.getFunctionName(ctx)
return _.includes(['revert', 'require'], name)
return name === 'revert' || name === 'require'
}

getFunctionName(ctx) {
Expand Down

0 comments on commit 4d24085

Please sign in to comment.