Skip to content

Commit

Permalink
Chore: fix linting errors (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored and not-an-aardvark committed Oct 24, 2018
1 parent 7df313d commit a128650
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/rules/no-useless-token-range.js
Expand Up @@ -112,9 +112,8 @@ module.exports = {
!affectsGetTokenOutput(identifier.parent.parent.arguments[1]) &&
identifier.parent.parent.parent.type === 'MemberExpression' &&
identifier.parent.parent === identifier.parent.parent.parent.object && (
(isStartAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getFirstToken') ||
(isEndAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getLastToken')
)
(isStartAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getFirstToken') ||
(isEndAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getLastToken'))
)
.forEach(identifier => {
const fullRangeAccess = isRangeAccess(identifier.parent.parent.parent)
Expand Down

0 comments on commit a128650

Please sign in to comment.