Skip to content

Commit

Permalink
Fix linting errors triggered by dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Apr 19, 2021
1 parent 4a7a772 commit c05e5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ function attributes (attrs) {
if (a > b) {
return 1
}

return 0
})
}

Expand Down
2 changes: 1 addition & 1 deletion lib/walk.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function walk (tree, path) {
let leaf = tree

for (let step of path) {
for (const step of path) {
if (Number.isInteger(step) || step === 'childNodes' || step === 'attrs') {
leaf = leaf[step]
} else {
Expand Down

0 comments on commit c05e5b6

Please sign in to comment.