Skip to content

Commit

Permalink
Fix lint complaints in walker
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jan 5, 2021
1 parent 7f5a53a commit aa0ccb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acorn-walk/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function full(node, callback, baseVisitor, state, override) {
;(function c(node, st, override) {
let type = override || node.type
baseVisitor[type](node, st, c)
if (last != node) {
if (last !== node) {
callback(node, st, type)
last = node
}
Expand All @@ -90,7 +90,7 @@ export function fullAncestor(node, callback, baseVisitor, state) {
let isNew = node !== ancestors[ancestors.length - 1]
if (isNew) ancestors.push(node)
baseVisitor[type](node, st, c)
if (last != node) {
if (last !== node) {
callback(node, st || ancestors, ancestors, type)
last = node
}
Expand Down

0 comments on commit aa0ccb4

Please sign in to comment.