Skip to content

Commit

Permalink
chore: remove redundant action (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 authored Jan 11, 2021
1 parent ffc93e5 commit 91fc166
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/init/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class InitCommand {
return;
}

modifyHelperUtil('init', initGenerator, null, null, options.auto, options.force, options.generationPath);
modifyHelperUtil(initGenerator, null, null, options.auto, options.force, options.generationPath);
},
);
}
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/modify-config-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export interface WebpackScaffoldObject extends Object {
const DEFAULT_WEBPACK_CONFIG_FILENAME = 'webpack.config.js';

export function modifyHelperUtil(
action: string,
generator: Generator.GeneratorConstructor,
configFile: string = DEFAULT_WEBPACK_CONFIG_FILENAME,
packages?: string[],
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/resolve-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function resolvePackages(pkg: string[]): Function | void {

function invokeGeneratorIfReady(): void {
if (packageLocations.length === pkg.length) {
modifyHelperUtil('init', null, null, packageLocations);
modifyHelperUtil(null, null, packageLocations);
}
}

Expand Down

0 comments on commit 91fc166

Please sign in to comment.