Skip to content

Commit e39fa62

Browse files
committed
cleanup unnecessary code
1 parent 4492bea commit e39fa62

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/sass-extract-js.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ function quoteFontName(str) {
3131
function getSassValue(sassVar) {
3232
const { type, value } = sassVar;
3333
switch (type) {
34-
case 'SassString':
35-
case 'SassBoolean':
36-
case 'SassNull':
37-
return value;
38-
3934
case 'SassNumber':
4035
return sassVar.unit ? `${value}${sassVar.unit}` : value;
4136

@@ -100,7 +95,7 @@ function transformStyles(stylesObj) {
10095
*/
10196
const sassExtractJs = {
10297
run: () => ({
103-
postExtract: extractedVariables => transformStyles(extractedVariables.global || {}),
98+
postExtract: extractedVariables => transformStyles(extractedVariables.global),
10499
}),
105100
};
106101

0 commit comments

Comments
 (0)