mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[perf] drop useless synchronous syscall on hot path for writing docs
This commit is contained in:
parent
b456ea726d
commit
18e943742e
1 changed files with 0 additions and 5 deletions
|
@ -334,12 +334,7 @@ module.exports = ResourceWriter = {
|
|||
}
|
||||
) // try and continue compiling even if http resource can not be downloaded at this time
|
||||
} else {
|
||||
const process = require('process')
|
||||
fs.writeFile(path, resource.content, callback)
|
||||
try {
|
||||
let result
|
||||
return (result = fs.lstatSync(path))
|
||||
} catch (e) {}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue