Skip to content

Commit

Permalink
remove null check from loader utils tcoopman#226
Browse files Browse the repository at this point in the history
  • Loading branch information
bassochette committed Dec 13, 2020
1 parent 6a5034d commit 1eabcd5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ module.exports = function(content) {
loaderUtils.getOptions(this)
: getLegacyLoaderConfig(this, "imageWebpackLoader");

if (config === null) {
// handle the cases in which loaderUtils.getOptions() returns null
// see https://github.com/webpack/loader-utils#getoptions
config = {}
}

var options = {
bypassOnDebug: config.bypassOnDebug || false,
disable: config.disable || false,
Expand Down

0 comments on commit 1eabcd5

Please sign in to comment.