File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -219,19 +219,19 @@ function addStyle (obj, options) {
219219
220220 // If a transform function was defined, run it on the css
221221 if ( options . transform && obj . css ) {
222- result = options . transform ( obj . css ) ;
223-
224- if ( result ) {
225- // If transform returns a value, use that instead of the original css.
226- // This allows running runtime transformations on the css.
227- obj . css = result ;
228- } else {
229- // If the transform function returns a falsy value, don't add this css.
230- // This allows conditional loading of css
231- return function ( ) {
232- // noop
233- } ;
234- }
222+ result = options . transform ( obj . css ) ;
223+
224+ if ( result ) {
225+ // If transform returns a value, use that instead of the original css.
226+ // This allows running runtime transformations on the css.
227+ obj . css = result ;
228+ } else {
229+ // If the transform function returns a falsy value, don't add this css.
230+ // This allows conditional loading of css
231+ return function ( ) {
232+ // noop
233+ } ;
234+ }
235235 }
236236
237237 if ( options . singleton ) {
You can’t perform that action at this time.
0 commit comments