File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,9 @@ module.exports = function loader (css, map) {
165
165
* @param {String } result Result (JS Module)
166
166
* @param {Object } map Source Map
167
167
*/
168
- return cb ( null , `module.exports = ${ JSON . stringify ( css ) } ` , map ) || null
168
+ cb ( null , `module.exports = ${ JSON . stringify ( css ) } ` , map )
169
+
170
+ return null
169
171
}
170
172
/**
171
173
* @memberof loader
@@ -175,7 +177,9 @@ module.exports = function loader (css, map) {
175
177
* @param {String } css Result (Raw Module)
176
178
* @param {Object } map Source Map
177
179
*/
178
- return cb ( null , css , map ) || null
180
+ cb ( null , css , map )
181
+
182
+ return null
179
183
} )
180
184
} ) . catch ( ( err ) => {
181
185
return err . name === 'CssSyntaxError' ? cb ( new SyntaxError ( err ) ) : cb ( err )
You can’t perform that action at this time.
0 commit comments