Skip to content

Commit

Permalink
fix(defaultValues): Added fallback for optional default values (commi…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkaar authored May 4, 2020
1 parent 861b361 commit 2aae317
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 @@ -4,7 +4,7 @@ var engine = require('./engine');
var conventionalCommitTypes = require('conventional-commit-types');
var configLoader = require('commitizen').configLoader;

var config = configLoader.load();
var config = configLoader.load() || {};
var options = {
types: conventionalCommitTypes.types,
defaultType: process.env.CZ_TYPE || config.defaultType,
Expand Down

0 comments on commit 2aae317

Please sign in to comment.