From d6c9237778782dfeaafc117713aa2e6a90b47420 Mon Sep 17 00:00:00 2001 From: Martyn Gigg Date: Mon, 9 Sep 2024 14:27:22 +0000 Subject: [PATCH] Fix linting errors --- superset-frontend/webpack.config.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 4296c173494b6..10bf4d49eec1d 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -45,7 +45,7 @@ const ROOT_DIR = path.resolve(__dirname, '..'); const TRANSLATIONS_DIR = path.resolve(__dirname, '../superset/translations'); const getAvailableTranslationCodes = () => { - if (process.env.BUILD_TRANSLATIONS == 'true') { + if (process.env.BUILD_TRANSLATIONS === 'true') { const LOCALE_CODE_MAPPING = { zh: 'zh-cn', }; @@ -58,10 +58,8 @@ const getAvailableTranslationCodes = () => { .map(dirName => dirName.replace('_', '-')) .map(dirName => LOCALE_CODE_MAPPING[dirName] || dirName); } - else { - // Indicates to the MomentLocalesPlugin that we only want to keep 'en'. - return [] - } + // Indicates to the MomentLocalesPlugin that we only want to keep 'en'. + return []; }; const {