Skip to content

Commit

Permalink
Fix one more unicorn/no-array-for-each issue
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 2, 2021
1 parent 3ac87e9 commit b2e61d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/src/util/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ class ScrollBarHelper {
if (isElement(selector)) {
callBack(selector)
} else {
// eslint-disable-next-line unicorn/no-array-for-each
SelectorEngine.find(selector, this._element).forEach(sel => callBack(sel))
const selectors = SelectorEngine.find(selector, this._element)

for (const sel of selectors) {
callBack(sel)
}
}
}

Expand Down

0 comments on commit b2e61d5

Please sign in to comment.