Skip to content

Commit

Permalink
make ProgressPlugin options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jan 28, 2021
1 parent 81bb146 commit 3cfa7cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ProgressPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,13 @@ class ProgressPlugin {
/**
* @param {ProgressPluginArgument} options options
*/
constructor(options) {
constructor(options = {}) {
if (typeof options === "function") {
options = {
handler: options
};
}

options = options || {};
validate(schema, options, {
name: "Progress Plugin",
baseDataPath: "options"
Expand Down

0 comments on commit 3cfa7cf

Please sign in to comment.