Skip to content
Permalink
Browse files

style(server): apply indent style for chaining

  • Loading branch information...
mycoboco committed Jul 16, 2019
1 parent f7c3beb commit 2369defbbac972fa2175501d9c0dbdebb5b9ee0d
Showing with 11 additions and 7 deletions.
  1. +11 −7 server/lib/db.ne.js
@@ -212,13 +212,17 @@ function cacheClear(cb) {
return cb() // errors ignored
}

funcs = files.filter(function (f) { return /^cache-/.test(f) })
.map(function (f) {
return function (callback) {
fs.unlink(path.join(conf.db.path, f), function (err) { err && log.warning(err) })
callback() // errors ignored
}
})
funcs = files
.filter(function (f) { return /^cache-/.test(f) })
.map(function (f) {
return function (callback) {
fs.unlink(
path.join(conf.db.path, f),
function (err) { err && log.warning(err) }
)
callback() // errors ignored
}
})

async.parallel(funcs, cb)
})

0 comments on commit 2369def

Please sign in to comment.
You can’t perform that action at this time.