Skip to content

Commit

Permalink
Use ternary operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Jul 5, 2024
1 parent fa98963 commit fe01d12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/log-viewer-webui/client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ const config = {
};

export default () => {
if (isProduction) {
config.mode = "production";
} else {
config.mode = "development";
}

config.mode = isProduction ? "production" : "development";
return config;
};

0 comments on commit fe01d12

Please sign in to comment.