diff --git a/.husky/pre-commit b/.husky/pre-commit index d1096ab18ae..660b8209689 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +npm run lint npm run test diff --git a/lib/fetch/index.js b/lib/fetch/index.js index 0223e2c90c0..198b8669dcf 100644 --- a/lib/fetch/index.js +++ b/lib/fetch/index.js @@ -1586,7 +1586,7 @@ function httpNetworkFetch ( // 7. Let newConnection be "yes" if forceNewConnection is true; otherwise // "no". - const newConnection = forceNewConnection ? 'yes' : 'no' + const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars // 8. Switch on request’s mode: if (request.mode === 'websocket') {