Skip to content

Commit 9beea7e

Browse files
committed
Remove try/catch block which is no longer needed
1 parent 96e318f commit 9beea7e

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
@@ -1038,16 +1038,12 @@ FS.staticInit();
10381038
node = path;
10391039
} else {
10401040
path = PATH.normalize(path);
1041-
try {
1042-
var lookup = FS.lookupPath(path, {
1043-
follow: !(flags & {{{ cDefs.O_NOFOLLOW }}}),
1044-
handleBrokenLink: true
1045-
});
1046-
node = lookup.node;
1047-
path = lookup.path;
1048-
} catch (e) {
1049-
// ignore
1050-
}
1041+
var lookup = FS.lookupPath(path, {
1042+
follow: !(flags & {{{ cDefs.O_NOFOLLOW }}}),
1043+
handleBrokenLink: true
1044+
});
1045+
node = lookup.node;
1046+
path = lookup.path;
10511047
}
10521048
// perhaps we need to create the node
10531049
var created = false;

0 commit comments

Comments
 (0)