diff --git a/lib/index.js b/lib/index.js index 86ebe1cd..c8196fc5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -165,7 +165,9 @@ module.exports = function loader (css, map) { * @param {String} result Result (JS Module) * @param {Object} map Source Map */ - return cb(null, `module.exports = ${JSON.stringify(css)}`, map) || null + cb(null, `module.exports = ${JSON.stringify(css)}`, map) + + return null } /** * @memberof loader @@ -175,7 +177,9 @@ module.exports = function loader (css, map) { * @param {String} css Result (Raw Module) * @param {Object} map Source Map */ - return cb(null, css, map) || null + cb(null, css, map) + + return null }) }).catch((err) => { return err.name === 'CssSyntaxError' ? cb(new SyntaxError(err)) : cb(err)