Skip to content

Commit

Permalink
fix(twconf): fixed options param at TwConf constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerlessCloud committed Aug 11, 2017
1 parent 15240fd commit e9fcc3c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ class TwConf {
* @param {boolean} [options.flatOnly=false]
* @param {boolean} [options.validationOnDemand=false]
*/
constructor(confSkeleton, options = {
allowUnspecified: true,
flatOnly: false,
validationOnDemand: false,
}) {
this.options = options;
constructor(confSkeleton, options) {
this.options = {};
this.options.allowUnspecified = options?.allowUnspecified || true;
this.options.flatOnly = options?.flatOnly || false;
this.options.validationOnDemand = options?.validationOnDemand || false;

/**
* @type {Map.<string, ConfigField>}
Expand Down

0 comments on commit e9fcc3c

Please sign in to comment.