]> source.dussan.org Git - jquery.git/commitdiff
Tests: Remove an unused local variable
authorWonhyoung Park <wh05.park@samsung.com>
Thu, 13 Aug 2020 11:24:30 +0000 (20:24 +0900)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2020 11:24:30 +0000 (13:24 +0200)
Closes gh-4769

test/middleware-mockserver.js

index e3b0bd163032d2b55e0cf305257b7d2e0ce1b6d4..39ccfb9f6968e3143d430dfc7fc92e741e68f869 100644 (file)
@@ -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 ), {