Skip to content

Commit 2aae317

Browse files
authoredMay 4, 2020
fix(defaultValues): Added fallback for optional default values (#99)
1 parent 861b361 commit 2aae317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var engine = require('./engine');
44
var conventionalCommitTypes = require('conventional-commit-types');
55
var configLoader = require('commitizen').configLoader;
66

7-
var config = configLoader.load();
7+
var config = configLoader.load() || {};
88
var options = {
99
types: conventionalCommitTypes.types,
1010
defaultType: process.env.CZ_TYPE || config.defaultType,

0 commit comments

Comments
 (0)
Please sign in to comment.