Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Commit 7ffa643

Browse files
committedFeb 2, 2017
Lint
1 parent 6e1f791 commit 7ffa643

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎bin/csswring.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Examples:
5454

5555
function wring(s, o) {
5656
csswring.wring(s, o)
57-
.then(function (result) {
57+
.then((result) => {
5858
if (!o.to) {
5959
process.stdout.write(result.css);
6060

@@ -67,7 +67,7 @@ function wring(s, o) {
6767
fs.writeFileSync(`${o.to}.map`, result.map);
6868
}
6969
})
70-
.catch(function (error) {
70+
.catch((error) => {
7171
if (error.name === "CssSyntaxError") {
7272
console.error(`${error.file}:${error.line}:${error.column}: ${error.reason}`);
7373
process.exit(1);

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ function wringAtRule(atRule) {
570570
}
571571
}
572572

573-
module.exports = postcss.plugin(pkg.name, function (opts) {
573+
module.exports = postcss.plugin(pkg.name, (opts) => {
574574
if (!opts) {
575575
opts = {};
576576
}
@@ -580,7 +580,7 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
580580
removeAllComments: false
581581
}, opts);
582582

583-
return function (css) {
583+
return (css) => {
584584
css.raws.semicolon = false;
585585
css.raws.after = "";
586586
css.walkComments(wringComment.bind(null, opts.removeAllComments));

0 commit comments

Comments
 (0)
This repository has been archived.