Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 6, 2024
1 parent bbbdabc commit 4e96c78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/nameserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ export default new Nameserver()

function dbToObject(rows) {
for (const row of rows) {
for (const f of ['description', 'address6', 'remote_login', 'datadir', 'logdir', 'export_status']) {
for (const f of [
'description',
'address6',
'remote_login',
'datadir',
'logdir',
'export_status',
]) {
if ([undefined, null].includes(row[f])) row[f] = ''
}
for (const f of ['export']) {
Expand Down
1 change: 0 additions & 1 deletion routes/nameserver.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ before(async () => {
server = await init()
})


after(async () => {
await server.stop()
})
Expand Down

0 comments on commit 4e96c78

Please sign in to comment.