Skip to content

Commit fc7ca3f

Browse files
committed
Fix code style
1 parent cae9ec1 commit fc7ca3f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

objectifier.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function atRule(node) {
3636
function process(node, options = {}) {
3737
let name
3838
let result = {}
39-
let { stringifyImportant } = options;
39+
let { stringifyImportant } = options
4040

4141
node.each(child => {
4242
if (child.type === 'atrule') {
@@ -53,9 +53,13 @@ function process(node, options = {}) {
5353
let body = process(child)
5454
if (result[child.selector]) {
5555
for (let i in body) {
56-
let object = result[child.selector];
57-
if (stringifyImportant && typeof object[i] === "string" && object[i].endsWith('!important')) {
58-
if (typeof body[i] === "string" && body[i].endsWith('!important')) {
56+
let object = result[child.selector]
57+
if (
58+
stringifyImportant &&
59+
typeof object[i] === 'string' &&
60+
object[i].endsWith('!important')
61+
) {
62+
if (typeof body[i] === 'string' && body[i].endsWith('!important')) {
5963
object[i] = body[i]
6064
}
6165
} else {

0 commit comments

Comments
 (0)