Skip to content

Commit e22f9b1

Browse files
author
Marc Robichaud
committed
Lint fixes.
1 parent a325f11 commit e22f9b1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ module.exports = postcss.plugin("postcss-color-function", function() {
3030
* @return {String} converted declaration value to rgba()
3131
*/
3232
function transformColor(string) {
33-
return parser(string).walk(function (node) {
34-
if (node.type !== 'function' || node.value !== 'color') return
33+
return parser(string).walk(function(node) {
34+
if (node.type !== "function" || node.value !== "color") {
35+
return
36+
}
3537

3638
node.value = colorFn.convert(parser.stringify(node))
37-
node.type = 'word'
39+
node.type = "word"
3840
}).toString()
3941
}

0 commit comments

Comments
 (0)