浏览代码

[perf] drop useless synchronous syscall on hot path for writing docs

Jakob Ackermann 5 年之前
父节点
当前提交
18e943742e
共有 1 个文件被更改,包括 0 次插入 和 5 次删除
  1. 0 5
      services/clsi/app/js/ResourceWriter.js

+ 0 - 5
services/clsi/app/js/ResourceWriter.js

@@ -334,12 +334,7 @@ module.exports = ResourceWriter = {
             }
             }
           ) // try and continue compiling even if http resource can not be downloaded at this time
           ) // try and continue compiling even if http resource can not be downloaded at this time
         } else {
         } else {
-          const process = require('process')
           fs.writeFile(path, resource.content, callback)
           fs.writeFile(path, resource.content, callback)
-          try {
-            let result
-            return (result = fs.lstatSync(path))
-          } catch (e) {}
         }
         }
       })
       })
     })
     })