Skip to content

Commit d42bf5f

Browse files
authored
Merge pull request #1325 from stof/clean_dead_code
Remove no-op argument
2 parents 903aaa6 + 3aeb76e commit d42bf5f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const parseRuntime = require('./lib/config/parse-runtime');
2929
const context = require('./lib/context');
3030

3131
let runtimeConfig = context.runtimeConfig;
32-
let webpackConfig = runtimeConfig ? new WebpackConfig(runtimeConfig, true) : null;
32+
let webpackConfig = runtimeConfig ? new WebpackConfig(runtimeConfig) : null;
3333

3434
class Encore {
3535
/**
@@ -1660,10 +1660,9 @@ class Encore {
16601660
*
16611661
* @param {string} environment
16621662
* @param {object} options
1663-
* @param {boolean} enablePackageJsonCheck
16641663
* @returns {Encore}
16651664
*/
1666-
configureRuntimeEnvironment(environment, options = {}, enablePackageJsonCheck = true) {
1665+
configureRuntimeEnvironment(environment, options = {}) {
16671666
runtimeConfig = parseRuntime(
16681667
Object.assign(
16691668
{},
@@ -1673,7 +1672,7 @@ class Encore {
16731672
process.cwd()
16741673
);
16751674

1676-
webpackConfig = new WebpackConfig(runtimeConfig, enablePackageJsonCheck);
1675+
webpackConfig = new WebpackConfig(runtimeConfig);
16771676

16781677
return this;
16791678
}

0 commit comments

Comments
 (0)