Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit b11151a

Browse files
committed
chore: fix lint
License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent 1fb34d2 commit b11151a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/echo-http-server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ module.exports.createServer = (opts) => {
4949
const { pathname } = new URL(`https://127.0.0.1${req.url}`)
5050
if (pathname.startsWith('/echo/')) {
5151
// Respond with text passed in URL after /echo/
52-
const [ , text ] = pathname.split('/echo/')
52+
const [, text] = pathname.split('/echo/')
5353
res.setHeader('Content-Type', 'text/plain')
5454
res.write(decodeURIComponent(text))
5555
} else if (req.url.startsWith('/302/')) {
5656
// Return a redirect to a passed URL
57-
const [ , location ] = pathname.split('/302/')
57+
const [, location] = pathname.split('/302/')
5858
const url = decodeURI(location)
5959
res.statusCode = 302
6060
res.setHeader('Location', url)

0 commit comments

Comments
 (0)