From 1eabcd5a364cadd80024a9df61f142cad199cf9e Mon Sep 17 00:00:00 2001 From: Julien Prugne Date: Sun, 13 Dec 2020 09:10:04 +0100 Subject: [PATCH] remove null check from loader utils #226 --- index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/index.js b/index.js index f746ac1..ea94719 100644 --- a/index.js +++ b/index.js @@ -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,