Skip to content

Commit

Permalink
Chore: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Oct 24, 2018
1 parent 7df313d commit dcdb066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-useless-token-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ 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') ||
(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 dcdb066

Please sign in to comment.