Skip to content

Commit f2f1128

Browse files
authored
Merge pull request #5065 from brave-intl/remove-null-check
remove null matcher
2 parents 2904d8f + 97cad72 commit f2f1128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nextjs/scripts/create-local-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ app
100100

101101
// express will overmatch on the root path, so handle that outside the other matchers
102102
expressApp.get('*', (req, res, next) => {
103-
if ([null, '//', '', '/', '/en', '/jp'].includes(req.path)) {
103+
if (['//', '', '/', '/en', '/jp'].includes(req.path)) {
104104
return handle(req, res);
105105
} else {
106106
next();

0 commit comments

Comments
 (0)