Skip to content

Commit d762a2b

Browse files
authored
Merge pull request webpack#6875 from mohsen1/patch-2
Remove extraneous argument from setOptions call sites in OptionsDefaulter
2 parents 3691224 + df2b3c2 commit d762a2b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/OptionsDefaulter.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,12 @@ class OptionsDefaulter {
4343
setProperty(
4444
options,
4545
name,
46-
this.defaults[name].call(this, getProperty(options, name), options),
47-
options
46+
this.defaults[name].call(this, getProperty(options, name), options)
4847
);
4948
break;
5049
case "make":
5150
if (getProperty(options, name) === undefined)
52-
setProperty(
53-
options,
54-
name,
55-
this.defaults[name].call(this, options),
56-
options
57-
);
51+
setProperty(options, name, this.defaults[name].call(this, options));
5852
break;
5953
case "append": {
6054
let oldValue = getProperty(options, name);

0 commit comments

Comments
 (0)