From 82b87f6f0e45ca4e717b4e3a4a20a592709a099f Mon Sep 17 00:00:00 2001 From: Wonhyoung Park Date: Thu, 13 Aug 2020 20:24:30 +0900 Subject: [PATCH] Tests: Remove an unused local variable Closes gh-4769 --- test/middleware-mockserver.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/middleware-mockserver.js b/test/middleware-mockserver.js index e3b0bd163..39ccfb9f6 100644 --- a/test/middleware-mockserver.js +++ b/test/middleware-mockserver.js @@ -280,8 +280,7 @@ function MockserverMiddlewareFactory() { * @param {Function} next Continue request handling */ return function( req, resp, next ) { - var method = req.method, - parsed = url.parse( req.url, /* parseQuery */ true ), + var parsed = url.parse( req.url, /* parseQuery */ true ), path = parsed.pathname.replace( /^\/base\//, "" ), query = parsed.query, subReq = Object.assign( Object.create( req ), { -- 2.39.5