File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function atRule(node) {
3636function 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 {
You can’t perform that action at this time.
0 commit comments