浏览代码

fix: eslint errors

Nicolas Giard 7 年之前
父节点
当前提交
2e215f1987
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      server/agent.js

+ 4 - 4
server/agent.js

@@ -115,8 +115,8 @@ global.db.onReady.then(() => {
         })
         })
 
 
         klaw(repoPath, {
         klaw(repoPath, {
-          filter: function(pathItem) {
-            return !pathItem.endsWith(".git");
+          filter: pathItem => {
+            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(() => {
               })
               })
             )
             )
           }
           }
-        }).on("error", (err, item) => {
-          global.winston.error(err);
+        }).on('error', (err, item) => {
+          global.winston.error(err)
         }).on('end', () => {
         }).on('end', () => {
           jobCbStreamDocsResolve(Promise.all(cacheJobs))
           jobCbStreamDocsResolve(Promise.all(cacheJobs))
         })
         })