fix: remove unnecessary ternary operation
This commit is contained in:
parent
f95deab005
commit
a0f6feeb78
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ function loadLatestConfig () {
|
|||
limit 1`
|
||||
|
||||
return db.one(sql, ['config', NEW_SETTINGS_LOADER_SCHEMA_VERSION])
|
||||
.then(row => !row ? {} : row.data.config)
|
||||
.then(row => row.data.config)
|
||||
.catch(err => {
|
||||
if (err.name === 'QueryResultError') {
|
||||
throw new Error('No config was found')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue