Skip to content

Commit a16bafd

Browse files
committed
Remove try/catch block which is no longer needed
1 parent 99996f5 commit a16bafd

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/library_fs.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,16 +1022,12 @@ FS.staticInit();
10221022
node = path;
10231023
} else {
10241024
path = PATH.normalize(path);
1025-
try {
1026-
var lookup = FS.lookupPath(path, {
1027-
follow: !(flags & {{{ cDefs.O_NOFOLLOW }}}),
1028-
handleBrokenLink: true
1029-
});
1030-
node = lookup.node;
1031-
path = lookup.path;
1032-
} catch (e) {
1033-
// ignore
1034-
}
1025+
var lookup = FS.lookupPath(path, {
1026+
follow: !(flags & {{{ cDefs.O_NOFOLLOW }}}),
1027+
handleBrokenLink: true
1028+
});
1029+
node = lookup.node;
1030+
path = lookup.path;
10351031
}
10361032
// perhaps we need to create the node
10371033
var created = false;

0 commit comments

Comments
 (0)