Skip to content

Commit 4647607

Browse files
committed
code cleanup
1 parent 036bedc commit 4647607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/middleware.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface MiddlewareOptions {
2929

3030
function findClosestIndexFileForPath(outputPath: string, prefix: string): string | undefined {
3131
const candidates = [];
32-
const parts = prefix.slice(0).split('/');
32+
const parts = prefix.split('/');
3333
while (parts.length) {
3434
parts.pop();
3535
candidates.push(resolvePath(outputPath, [...parts, 'index.html'].join(path.sep)));

0 commit comments

Comments
 (0)