Skip to content

Commit 31e6578

Browse files
committed
Refactor: get defaults from our config
1 parent ed721af commit 31e6578

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/getConfig.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@ const getConfig = (altPath) => {
2828

2929
config.inherit = config.inherit === undefined ? {} : config.inherit;
3030

31-
// set defaults
32-
let configDefaults = {
33-
questions: {
34-
scope: false,
35-
body: true,
36-
},
37-
};
31+
// set defaults which are necessary
32+
let configDefaults = {};
33+
34+
configDefaults.questions = sgcrcDefault.questions;
3835

3936
// inherit everything
4037
if (config.inherit === true) {

0 commit comments

Comments
 (0)