Skip to content

Commit 209bbdf

Browse files
committed
cleanup and linting
1 parent d5ef8c8 commit 209bbdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/router/sequential.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const next = require('./../next')
55

66
module.exports = (config = {}) => {
77
if (!config.defaultRoute) {
8-
config.defaultRoute = (req) => {
8+
config.defaultRoute = () => {
99
const res = new Response(null, {
1010
status: 404
1111
})
@@ -14,7 +14,7 @@ module.exports = (config = {}) => {
1414
}
1515
}
1616
if (!config.errorHandler) {
17-
config.errorHandler = (err, req) => {
17+
config.errorHandler = (err) => {
1818
const res = new Response(err.message, {
1919
status: 500
2020
})
@@ -38,7 +38,7 @@ module.exports = (config = {}) => {
3838
return this
3939
}
4040

41-
router.fetch = (req, step) => {
41+
router.fetch = (req) => {
4242
const url = new URL(req.url)
4343

4444
req.path = url.pathname || '/'

0 commit comments

Comments
 (0)