fs: two minor optimizations · nodejs/node@2a02868 · GitHub
Skip to content

Commit 2a02868

Browse files
BridgeARaddaleax
authored andcommitted
fs: two minor optimizations
* tryStatSync should not return any value If the function threw, it would never reach that code path. * only use try catch if necessary lchmodSync does not need the second try catch in most cases. PR-URL: #14055 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 9ee271d commit 2a02868

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

lib/fs.js

Lines changed: 11 additions & 13 deletions

0 commit comments

Comments
 (0)