Skip to content

Commit

Permalink
fix: Add fallback value to header option (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
MorevM committed Mar 10, 2022
1 parent 2e7ce2a commit 391d8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ConventionalChangelog extends Plugin {
}

async writeChangelog() {
const { infile, header: _header } = this.options;
const { infile, header: _header = '' } = this.options;
let { changelog } = this.config.getContext();
const header = _header.split(/\r\n|\r|\n/g).join(EOL);

Expand Down

0 comments on commit 391d8c8

Please sign in to comment.