Skip to content

Commit b18e24b

Browse files
committed
Use Node 4x syntax
1 parent fd39e25 commit b18e24b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var postcss = require('postcss');
1+
const postcss = require('postcss');
22

3-
module.exports = postcss.plugin('postcss-replace-overflow-wrap', function (opts) {
3+
module.exports = postcss.plugin('postcss-replace-overflow-wrap', (opts) => {
44
opts = opts || {};
5-
var method = opts.method || 'replace';
5+
const method = opts.method || 'replace';
66

7-
return function (css, result) { // eslint-disable-line no-unused-vars
8-
css.walkDecls('overflow-wrap', function (decl, i) { // eslint-disable-line no-unused-vars
7+
return (css, result) => { // eslint-disable-line no-unused-vars
8+
css.walkDecls('overflow-wrap', (decl, i) => { // eslint-disable-line no-unused-vars
99
decl.cloneBefore({ prop: 'word-wrap' });
1010
if (method === 'replace') {
1111
decl.remove();

0 commit comments

Comments
 (0)