diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-08-04 09:58:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 09:58:12 +0300 |
commit | 3fa5796687b872a7cb0e5cf86d743896e6abfbe2 (patch) | |
tree | d7dd82c9c96dbbbcf6e844fa9e3c43635df112f5 /postcss.js | |
parent | 31780a461fb1ad0c6e9a43b315eb47e8f801cfcb (diff) |
Switch to using for...of (#414)
Diffstat (limited to 'postcss.js')
-rw-r--r-- | postcss.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -123,16 +123,16 @@ module.exports = postcss.plugin('postcss-rfs', opts => { const fluidMediaQuery = mediaQuery.clone(); - mediaQueryRules.forEach(mediaQueryRule => { + for (const mediaQueryRule of mediaQueryRules) { fluidMediaQuery.append(mediaQueryRule); - }); + } parent.insertAfter(rule, fluidMediaQuery); if (extraBlocks.length > 0) { - extraBlocks.forEach(disableBlock => { + for (const disableBlock of extraBlocks) { parent.insertAfter(rule, disableBlock); - }); + } } if (removeRule) { |