Skip to content

Commit f8a8582

Browse files
author
Tobias Zucali
committed
convert space indent to tabs (like rest of document)
1 parent 196641e commit f8a8582

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/addStyles.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)