Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Sep 9, 2024
1 parent c4f41db commit 64e3883
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions superset-frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand All @@ -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 {
Expand Down

0 comments on commit 64e3883

Please sign in to comment.