Tests: Remove an unused local variable

Closes gh-4769
This commit is contained in:
Wonhyoung Park 2020-08-13 20:24:30 +09:00 committed by GitHub
parent a22b43bad4
commit 82b87f6f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,8 +280,7 @@ function MockserverMiddlewareFactory() {
* @param {Function} next Continue request handling * @param {Function} next Continue request handling
*/ */
return function( req, resp, next ) { return function( req, resp, next ) {
var method = req.method, var parsed = url.parse( req.url, /* parseQuery */ true ),
parsed = url.parse( req.url, /* parseQuery */ true ),
path = parsed.pathname.replace( /^\/base\//, "" ), path = parsed.pathname.replace( /^\/base\//, "" ),
query = parsed.query, query = parsed.query,
subReq = Object.assign( Object.create( req ), { subReq = Object.assign( Object.create( req ), {