Skip to content

Commit

Permalink
fix: mark optional parameter with undefined (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored and marionebl committed Jan 27, 2019
1 parent 434a70f commit 6720284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/parse/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {merge} from 'lodash';

export default parse;

async function parse(message, parser = sync, parserOpts) {
async function parse(message, parser = sync, parserOpts = undefined) {
const defaultOpts = (await defaultChangelogOpts).parserOpts;
const parsed = parser(message, merge({}, defaultOpts, parserOpts));
parsed.raw = message;
Expand Down

0 comments on commit 6720284

Please sign in to comment.