Skip to content

Commit 3c28bb2

Browse files
committed
maint(core parser): Minimal code simplification.
1 parent 22f600e commit 3c28bb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/parser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class ArgumentParser {
400400
return options;
401401
}
402402

403-
parse($el, options, multiple, inherit, group_options = true) {
403+
parse($el, options, multiple, inherit = true, group_options = true) {
404404
if (!$el.jquery) {
405405
$el = $($el);
406406
}
@@ -409,7 +409,6 @@ class ArgumentParser {
409409
multiple = options;
410410
options = {};
411411
}
412-
inherit = inherit !== false;
413412
const stack = inherit ? [[this._defaults($el)]] : [[{}]];
414413
let $possible_config_providers;
415414
let final_length = 1;

0 commit comments

Comments
 (0)