Commit 2e215f19 authored by Nicolas Giard's avatar Nicolas Giard

fix: eslint errors

parent c70f9030
...@@ -115,8 +115,8 @@ global.db.onReady.then(() => { ...@@ -115,8 +115,8 @@ global.db.onReady.then(() => {
}) })
klaw(repoPath, { klaw(repoPath, {
filter: function(pathItem) { filter: pathItem => {
return !pathItem.endsWith(".git"); return !pathItem.endsWith('.git')
} }
}).on('data', function (item) { }).on('data', function (item) {
if (path.extname(item.path) === '.md' && path.basename(item.path) !== 'README.md') { if (path.extname(item.path) === '.md' && path.basename(item.path) !== 'README.md') {
...@@ -155,8 +155,8 @@ global.db.onReady.then(() => { ...@@ -155,8 +155,8 @@ global.db.onReady.then(() => {
}) })
) )
} }
}).on("error", (err, item) => { }).on('error', (err, item) => {
global.winston.error(err); global.winston.error(err)
}).on('end', () => { }).on('end', () => {
jobCbStreamDocsResolve(Promise.all(cacheJobs)) jobCbStreamDocsResolve(Promise.all(cacheJobs))
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment