Skip to content

Commit 0f2713d

Browse files
committed
Try shorter code
1 parent 4c0bd88 commit 0f2713d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/library_syscall.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ var SyscallsLibrary = {
3838
}
3939
return dir;
4040
}
41-
if (!dir.endsWith('/')) {
42-
dir += '/'
43-
}
44-
return dir + path;
41+
return dir + '/' + path;
4542
},
4643

4744
doStat(func, path, buf) {

0 commit comments

Comments
 (0)