Test for an empty object in `cli.ts` when no config data is present (i.e. when run on a new install).
This commit is contained in:
parent
e730aef76a
commit
8684f3c1f6
|
@ -23,7 +23,7 @@ async function getSettings () {
|
|||
if (err) {
|
||||
return rej(err)
|
||||
}
|
||||
return res(data || settings)
|
||||
return res(Object.keys(data).length === 0 ? settings : data)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue