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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue