From beea433d3325053334f1073bb2b65fb5c28b910b 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 (cherry picked from commit 82b87f6f0e45ca4e717b4e3a4a20a592709a099f) --- 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 6fc3bb1c1..06bf3b9c6 100644 --- a/test/middleware-mockserver.js +++ b/test/middleware-mockserver.js @@ -277,8 +277,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