Skip to content

Commit 56d7c49

Browse files
committed
Use single quotes
1 parent e9c074a commit 56d7c49

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/library_fs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ FS.staticInit();
175175
opts.follow_mount ??= true
176176

177177
if (!PATH.isAbs(path)) {
178-
path = FS.cwd() + "/" + path;
178+
path = FS.cwd() + '/' + path;
179179
}
180180

181181
// limit max consecutive symlinks to 40 (SYMLOOP_MAX).
182182
linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
183183
// split the absolute path
184-
var parts = path.split('/').filter((p) => !!p && (p !== "."));
184+
var parts = path.split('/').filter((p) => !!p && (p !== '.'));
185185

186186
// start at the root
187187
var current = FS.root;
@@ -194,7 +194,7 @@ FS.staticInit();
194194
break;
195195
}
196196

197-
if (parts[i] === "..") {
197+
if (parts[i] === '..') {
198198
current_path = PATH.dirname(current_path);
199199
current = current.parent;
200200
continue;
@@ -216,9 +216,9 @@ FS.staticInit();
216216
}
217217
var link = current.node_ops.readlink(current);
218218
if (!PATH.isAbs(link)) {
219-
link = PATH.dirname(current_path) + "/" + link;
219+
link = PATH.dirname(current_path) + '/' + link;
220220
}
221-
path = link + "/" + parts.slice(i + 1).join("/");
221+
path = link + '/' + parts.slice(i + 1).join('/');
222222
continue linkloop;
223223
}
224224
}

src/library_syscall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ var SyscallsLibrary = {
3838
}
3939
return dir;
4040
}
41-
if (!dir.endsWith("/")) {
42-
dir += "/"
41+
if (!dir.endsWith('/')) {
42+
dir += '/'
4343
}
4444
return dir + path;
4545
},

0 commit comments

Comments
 (0)