Skip to content

Commit 240e164

Browse files
committed
Address review comments
1 parent 1611617 commit 240e164

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/library_fs.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,10 @@ FS.staticInit();
174174
path = PATH_FS.resolve(path);
175175

176176
if (!path) return { path: '', node: null };
177-
178-
var defaults = {
179-
follow_mount: true,
180-
};
181-
opts = Object.assign(defaults, opts)
177+
opts.follow_mount ??= true
182178

183179
// limit max consecutive symlinks to 40 (SYMLOOP_MAX).
184-
linkloop: for (var nlinks = 0; nlinks < 40; nlinks ++) {
180+
linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
185181
// split the absolute path
186182
var parts = path.split('/').filter((p) => !!p);
187183

0 commit comments

Comments
 (0)