Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Dec 3, 2024
1 parent 6622319 commit 74f3b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function resolver(): Plugin {
}
});
return () => {
server.middlewares.use((req, res, next) => {
server.middlewares.use((req, _res, next) => {
if (req.originalUrl && req.originalUrl.length > 1) {
if (req.originalUrl?.match(/\/tests($|\?)/)) {
req.originalUrl = '/tests/index.html';
Expand Down

0 comments on commit 74f3b66

Please sign in to comment.