Skip to content

Commit 3d4ef8d

Browse files
committed
Perf change
See https://jsperf.app/howidi/2 for details
1 parent 6290e46 commit 3d4ef8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gdrive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class GoogleDriveFS extends CloudFS<DriveError> {
5555

5656
if (path === '/') return 'root';
5757

58-
const segments = path.split('/').filter(Boolean);
58+
const segments = path.split('/').filter(v => v);
5959
let parentId: string | undefined = 'root';
6060
let fileId: string | undefined = 'root';
6161
let currentPath = '';

0 commit comments

Comments
 (0)