From 2fc09e7376ee2779cf1f140210322b3e874a4156 Mon Sep 17 00:00:00 2001 From: Horie Issei Date: Sun, 20 Mar 2022 02:33:45 +0900 Subject: [PATCH] Fix lint error (#1293) --- .husky/pre-commit | 1 + lib/fetch/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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') {