We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 44f01bb commit 8df20ceCopy full SHA for 8df20ce
lib/index.js
@@ -165,7 +165,9 @@ module.exports = function loader (css, map) {
165
* @param {String} result Result (JS Module)
166
* @param {Object} map Source Map
167
*/
168
- return cb(null, `module.exports = ${JSON.stringify(css)}`, map) || null
+ cb(null, `module.exports = ${JSON.stringify(css)}`, map)
169
+
170
+ return null
171
}
172
/**
173
* @memberof loader
@@ -175,7 +177,9 @@ module.exports = function loader (css, map) {
175
177
* @param {String} css Result (Raw Module)
176
178
179
- return cb(null, css, map) || null
180
+ cb(null, css, map)
181
182
183
})
184
}).catch((err) => {
185
return err.name === 'CssSyntaxError' ? cb(new SyntaxError(err)) : cb(err)
0 commit comments