Skip to content

Commit

Permalink
style(textlint-bundler): fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Takeharu Oshida committed Feb 17, 2020
1 parent 7a8306d commit 40dac44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/textlint-bundler/lib/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const readPkg = () => {

const createWebpackConfig = (debugMode = false) => {
const preset = textlint.preset;
const debugMode = flags.debug;
let webpackConfig
if (debugMode) {
webpackConfig = require('./fixture/webpack.development.config');
Expand All @@ -35,7 +34,7 @@ module.exports = (flags, spinner) => {
if (!textlint.preset) {
return Promise.reject('`textlint.preset` is not defined in package.json');
}
const webpackConfig = createWebpackConfig(debugMode);
const webpackConfig = createWebpackConfig(flags.debug);
return new Promise((resolve, reject) => {
const webpackCallback = (err, stats) => {
spinner.clear();
Expand Down

0 comments on commit 40dac44

Please sign in to comment.